question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

WARNING: Tried to load angular more than once.

See original GitHub issue
import 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:closed
  • Created 8 years ago
  • Comments:17 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
hally9kcommented, Jun 25, 2017

v0.7.2 released. Closing for now.

1reaction
skortchmark9commented, Jun 24, 2017

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:

cat node_modules/redux-ui-router/dist/redux-ui-router.js | wc -l
12891

And contains lines like:

var mod_main = angular_1.ng.module('ui.router', ['ui.router.init', 'ui.router.state', 'ui.router.angular1']);

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found