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

Sample app is not working #49

Closed
am0d opened this issue Mar 15, 2013 · 6 comments
Closed

Sample app is not working #49

am0d opened this issue Mar 15, 2013 · 6 comments

Comments

@am0d
Copy link

am0d commented Mar 15, 2013

I see the following error in the console:

Uncaught SyntaxError: Variable '$ViewDirective' has already been declared angular-ui-states.js:974
Uncaught Error: No module: ui.compat angular-1.0.4.js:1060

This error also occurs for my own app when I try to use ui-router.

I get this error on Chrome Canary on Windows 7 64 bit. Firefox stable on Linux Mint works fine.
I get the same error as above when I try to run my own app with ui-router on Chrome Canary.

Commenting out the forward declaration of $ViewDirective gets rid of the error in the console, but nothing seems to happen in my app - no views get populated or controllers instantiated, etc.

@joshsadler
Copy link

@am0d check to see if you have any experimental flags enabled in Chrome.

@am0d
Copy link
Author

am0d commented Mar 18, 2013

@joshsadler Yes, I have most experimental Javascript and CSS flags turned on in Chrome. Any idea which one might possibly cause this? Should I need to disable them to use this project?

@am0d
Copy link
Author

am0d commented Mar 18, 2013

@joshsadler Disabling the experimental Javascript flag on Chrome fixed the issue. Not sure if this is a bug in Chrome or in ui-router, but either way there should still be some way to use the router with experimental flags on.

@ksperling
Copy link
Contributor

Can you guys please retest with the latest build, i've removed the re-declaration of $ViewDirective now

@am0d
Copy link
Author

am0d commented Mar 20, 2013

This works for me now, even with the experimental Javascript on.
Thanks a lot!
Feel free to close if you want.

@ksperling
Copy link
Contributor

Seems to be related to https://code.google.com/p/v8/issues/detail?id=1942

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

3 participants