You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 10, 2018. It is now read-only.
I am currently working on upgrading my angular 2 app to angular 4, and I am currently getting stuck with ngrx store.
When using ng serve the browser outputs the following error: Error: Unexpected value '[object Object]' imported by the module 'AppModule'. Please add a @NgModule annotation.
I know that ngrx store is causing this because I manually edited the outputted vendor file to dump the proper object and it is erroring when it loads StoreModule.
The store is being imported in the AppModule file in the imports array like: StoreModule.provideStore(reducer),
The reducers file as the following that builds the reducers:
This error I think you can solve it by adding in your external configuration of your server the following
const nodeExternals = require('webpack-node-externals');
.....
....
externals: nodeExternals ()
I am currently working on upgrading my angular 2 app to angular 4, and I am currently getting stuck with ngrx store.
When using
ng serve
the browser outputs the following error:Error: Unexpected value '[object Object]' imported by the module 'AppModule'. Please add a @NgModule annotation.
I know that ngrx store is causing this because I manually edited the outputted vendor file to dump the proper object and it is erroring when it loads StoreModule.
The store is being imported in the AppModule file in the imports array like:
StoreModule.provideStore(reducer),
The reducers file as the following that builds the reducers:
Am I missing something with he migration to Angular 4?
The text was updated successfully, but these errors were encountered: