Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue at plugin startup #78

Closed
Virtual-Machine opened this issue Dec 17, 2015 · 1 comment
Closed

Issue at plugin startup #78

Virtual-Machine opened this issue Dec 17, 2015 · 1 comment

Comments

@Virtual-Machine
Copy link

aurelia-dialog 0.5.1
aurelia framework 1.0.0-beta.1.0.4

I may be doing something wrong but I just installed aurelia-dialog via jspm into my project per the README, added .plugin('aurelia-dialog') to my configuration and am now getting 3 duplicate errors on app startup:

Unhandled promise rejection TypeError: config.globalResources is not a function(…) coming from line 1444 in shim.min.js

All of this is a bit surprising considering (http://stackoverflow.com/questions/32260529/aurelia-globalizeresources-no-longer-available)...
I inspected the config object in the plugin's index.js and the prototype does have a globalizeResources function but no reference as I can tell to globalResources. If I change the line to use globalizeResources instead of globalResources then the plugin proceeds to load and then I get 2 duplicate errors stating:

Unhandled promise rejection TypeError: Cannot read property 'endsWith' of undefined(…) coming from line 1444 in shim.min.js

If I comment out .plugin('aurelia-dialog') from my configuration then there are no errors and my app loads as expected save for the dialog functionality so it clearly appears to be centralized to using this plugin.

Hoping someone could either point me in the right direction or acknowledge that there is an issue. Maybe I just need to update the aurelia core framework? Let me know if you need any more information.

@Virtual-Machine
Copy link
Author

I did an update to the Aurelia framework and this plugin now appears to load as expected. Unfortunately, the update appears to have broken a different plugin I am using paulvanbladel/aurelia-auth. Hopefully I can get the author of the plugin to make the update because simply changing globalizeResources to globalResources in that plugin's index.js results in errors... which seems to indicate the API has changed a bit and the plugin is no longer in sync with the latest framework.

ERROR [app-router] TypeError: Cannot read property 'some' of undefined(…)error
ERROR [app-router] Router navigation failed, and no previous location could be restored

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants