Skip to content

Unexpected value 'JsonApiModule' imported by the module 'AppModule' #36

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Tinostarn opened this issue Oct 13, 2016 · 1 comment
Closed
Labels

Comments

@Tinostarn
Copy link

Tinostarn commented Oct 13, 2016

After upgrading to v3.2, I've got this error message :

client?8fb9:75 ./client/app/app.module.ts (5,31): error TS2307: Cannot find module 'angular2-jsonapi'.
compiler.umd.js?9df7:13996 Uncaught Error: Unexpected value 'JsonApiModule' imported by the module 'AppModule'

I tried to change the position of the import at the top of my app.module.ts, and in the imports[] of my ngModule. No success.

Also tried the fix proposed in #13 and related issues :
module.exports = { resolve: { modules: [ path.join(__dirname, "node_modules") ] } };

Doesn't work either.
Note that the "Unexpected value" displays only in Chrome console, not in my build process.

I use Webpack 1.13.2, but not angular-cli, my project boilerplate is created from scratch.

Thx for your help.

@Tinostarn
Copy link
Author

Tinostarn commented Oct 13, 2016

I downgraded to v3.1.0 and the error messages disappeared ... So there's something from v3.1.1 that causes that issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants