router: Problem after update
After updating aurelia today my app does not work anymore: when the main router starts, I get the following error:
Unhandled promise rejection Error: History must implement activate().
at History.activate (http://localhost:9000/jspm_packages/github/aurelia/history@0.5.0/index.js:18:17)
at AppRouter.activate (http://localhost:9000/jspm_packages/github/aurelia/router@0.9.0/app-router.js:187:24)
at http://localhost:9000/jspm_packages/github/aurelia/router@0.9.0/app-router.js:170:24
at run (http://localhost:9000/jspm_packages/npm/core-js@0.9.15/modules/es6.promise.js:83:43)
at http://localhost:9000/jspm_packages/npm/core-js@0.9.15/modules/es6.promise.js:97:11
at module.exports (http://localhost:9000/jspm_packages/npm/core-js@0.9.15/modules/$.invoke.js:6:25)
at queue.(anonymous function) (http://localhost:9000/jspm_packages/npm/core-js@0.9.15/modules/$.task.js:42:9)
at Number.run (http://localhost:9000/jspm_packages/npm/core-js@0.9.15/modules/$.task.js:29:7)
at listner (http://localhost:9000/jspm_packages/npm/core-js@0.9.15/modules/$.task.js:33:9)
Am I doing something wrong?
Thanks
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Reactions: 1
- Comments: 16 (7 by maintainers)
Yes, you’ve got multiple versions loading there. You need to resolve the forks be removing the old versions. Try a
jspm clean
first to see if it does that for you. If not, go into the config.js and update the version numbers to only use the latest. Sorry about this…it’s a problem with jspm we’re not fond of.