WARNING: Tried to load angular more than once.
See original GitHub issueimport angular from 'angular';
import 'angular-ui-router';
import ngRedux from 'ng-redux';
import ngReduxUiRouter from 'redux-ui-router';
// ...
angular.module('app', [
ngRedux,
ngReduxUiRouter,
'ngMaterial',
'ngAnimate',
// ...
).
Issue Analytics
- State:
- Created 8 years ago
- Comments:17 (4 by maintainers)
Top Results From Across the Web
WARNING: Tried to load angular more than once. Angular JS
If there's more than one file loading AngularJS within that directory, like angular.js and angular.min.js for example, then this error will be ...
Read more >WARNING: Tried to load angular more than once (SOLVED)
Hi Please can someone tell me how to fix this my screen is blank because of this error ionic.bundle.js:33809 WARNING: Tried to load...
Read more >UI cant load angular .error >> "Tried to load angular more than ...
Hi all , am doing some work , creating a new angular widget ,and i had activated UI hot Realoading ... WARNING: Tried...
Read more >WARNING: Tried to load angular more than once. #10 - GitHub
Hello Angular Team! I have been trying to migrate an angular js application to angular and have followed the steps in this article: ......
Read more >Tried to load angular more than once. Angular JS-grunt.js
This case is when the code takes to infinite loop somehow. Make sure you verify if there are any redirections in your code...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
v0.7.2 released. Closing for now.
I’m not bundling my app, I am referring to the bundle in the published npm package for this repo:
node_modules/redux-ui-router/dist/redux-ui-router.js
. It’s currently 12k lines unminified:And contains lines like:
That’s what I was saying is sketchy, since stuff like that should be in ui router’s bundle, not
redux-ui-router
’s (as pointed out by @jongunter )I was under the impression that when building a bundle for the browser with webpack that it would look for dependencies on the window object instead of inlining all 100~ish of them. I’m not really familiar with webpack though so I could be wrong.
Regardless, I’m pretty sure the bundle used to look for stuff on the window object ( I don’t think I ever noted the version, sorry), and that’s why Jon and I experienced the issue.