paulvanbladel / aurelia-auth

:key: Authentication plugin for aurelia
200 stars 74 forks source link

Aurelia Router breaks after aurelia-auth installation #100

Closed simeonoff closed 8 years ago

simeonoff commented 8 years ago

I get the following immediately after I do jspm install aurelia-auth:

ERROR [app-router] Error: Route loaders must implement "loadRoute(router, config, navigationInstruction)".
ERROR [app-router] Router navigation failed, and no previous location could be restored.

This is on a new aurelia-skeleton(latest build), so everything is as is. Am I doing something wrong?

simeonoff commented 8 years ago

You can close the issue, turns out I had to run

jspm install aurelia-auth --lock

to prevent overrides of the local packages.

jasonhjohnson commented 8 years ago

I'm getting this issue too. Tried uninstalling aurelia-auth and running jspm install aurelia-auth --lock with no luck.

paulvanbladel commented 8 years ago

Try cleaning map section in config.Js and run jspm install. Aurelia Auth sample seems to work fine

jasonhjohnson commented 8 years ago

@paulvanbladel That did the trick. Thanks.