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.

import npm package causes Error: [$injector:modulerr]

See original GitHub issue

I am using this package from npm, but the code downloaded doesn’t match with the code from master, this causes Uncaught Error: [$injector:modulerr] Failed to instantiate module ... using it from import ngStorage from 'ngstorage';.

Code downloaded:

screen shot 2016-10-26 at 11 22 51 pm

Code from master:

screen shot 2016-10-26 at 11 26 20 pm

The first one isn’t exporting anything.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:1
  • Comments:6

github_iconTop GitHub Comments

1reaction
setry14commented, Mar 28, 2017

@Vercryger Appreciate your quick response, although I went ahead with another storage library. I really think you should give ngStorage a pull request so they can update their code base with what you already got working. Good job though!

0reactions
Vercrygercommented, Mar 28, 2017

@setry14 Did you copy the code I just provided before? I’m using it with no issues.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular js : Uncaught Error: [$injector:nomod] module ...
You need to add the line import '../app/components/items/items.module'; before import { ItemDetailsController } from '.
Read more >
cannot find module [Node npm Error Solved] - freeCodeCamp
This error occurs because of the following reasons: you're trying to import an item from a module you don't have installed in your...
Read more >
Gulp-angular-esmodules-filesort NPM | npm.io
Used in conjunction with gulp-inject to inject your AngularJS application files (scripts) in a correct order, to get rid of all Uncaught Error:...
Read more >
gulp-angular-esmodules-filesort - NPM Package Overview - Socket
Automatically sort AngularJS app files depending on module definitions and usage and also ES6 import/exports. Version: 1.2.5 was published by alirezamirian.
Read more >
Bountysource
import npm package causes Error: [$injector:modulerr]
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