Error: Unexpected value 'NouisliderModule in ...
See original GitHub issueWhen I am building my project for production the following error is appearing.
Error: Unexpected value 'NouisliderModule in /path-to-project/node_modules/ng2-nouislider/src/nouislider.js' imported by the module 'MyModule in /path-to-project/src/my.module.ts'. Please add a @NgModule annotation.
Has anyone a tip for me? I don’t know why this error occurs.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5
Top Results From Across the Web
Karma unit testing error: Unexpected value imported by the ...
Now I got this new error, which I am not able to fix: Failed: Unexpected value 'MatDialogRef' imported by the module 'DynamicTestModule'.
Read more >Angular Noob here - what does "Please add a @NgModule ...
I am trying to build my angular web app using ng build --prod . ... ERROR in : Unexpected value 'NouisliderModule in /<project_home>/node_modules/ ......
Read more >Karma unit testing error: Unexpected value imported by the ...
Angular – Karma unit testing error: Unexpected value imported by the module. Please add a @NgModule annotation. angularelectronkarma-jasmineng-modulesunit- ...
Read more >Testing Angular Material 6: Unexpected Value - ADocLib
ERROR in : Unexpected value 'NouisliderModule in /projecthome /nodemodules/ng2nouislider/src/nouislider.js' imported by the module. the @ ...
Read more >Error: Unexpected value FormBuilder imported by the module ...
b Error: Unexpected value 'FormBuilder' imported by the module 'DynamicTestModule'. Please add an @NgModule annotation. Import the following ...
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 FreeTop 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
Top GitHub Comments
I changed
to
and now it is working… But this is not a nice solution. I think there should be added an
index.ts
that has a reference to thesrc/nouislider
directory.@iCodr8 This workaround is indeed working. Thank you for that! At least I can continue development until there is an actual fix to the issue.
This seems to be the culprit: https://github.com/tb/ng2-nouislider/issues/113