import npm package causes Error: [$injector:modulerr]
See original GitHub issueI 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:
Code from master:
The first one isn’t exporting anything.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:6
Top 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 >
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
@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!
@setry14 Did you copy the code I just provided before? I’m using it with no issues.