angular-ui / ui-router

The de-facto solution to flexible routing with nested views in AngularJS
http://ui-router.github.io/
MIT License
13.56k stars 3.01k forks source link

Error when updating to 1.0.19 #3726

Closed dboscanv closed 4 years ago

dboscanv commented 5 years ago

My version of UI-Router is: 1.0.19

Bug Report

Current Behavior:

When updated to 1.0.19 the following error occurs:

`ERROR in ./~/@uirouter/core/lib-esm/index.jsERROR

  1. Module build failed: error: couldn't process source due to parse error,'import' and 'export' may appear only with 'sourceType: module' (5:0)
  2. @ ./~/@uirouter/angularjs/release/ui-router-angularjs.js 9:104-129
  3. @ ./app/index.js`

And the build fails.

Expected Behavior:

The code should works. After downgrading to 1.0.18 my code works.

schmkr commented 5 years ago

I also noted another issue, and that is that this patch release now uses Array.prototype.find which is not (natively) supported by IE11.

mattdsteele commented 5 years ago

This has been fixed in core, but is waiting on https://github.com/ui-router/core/commit/66a3244271427942b403931d95118f4d5cc9b509 to ship.

See https://github.com/ui-router/core/issues/215

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

This does not mean that the issue is invalid. Valid issues may be reopened.

Thank you for your contributions.