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
Changing from angular/cli:"1.2.0-beta.1" to angular/cli:"^1.4.9"
and running
ng build --prod
causes the following output:
WARNING in ./src/app/app.component.ts
10:64-75 "export 'Store' (imported as 'Redux') was not found in 'redux'
WARNING in ./src/app/chat-nav-bar/chat-nav-bar.component.ts
15:71-82 "export 'Store' (imported as 'Redux') was not found in 'redux'
WARNING in ./src/app/chat-threads/chat-threads.component.ts
24:72-83 "export 'Store' (imported as 'Redux') was not found in 'redux'
WARNING in ./src/app/chat-window/chat-window.component.ts
40:71-82 "export 'Store' (imported as 'Redux') was not found in 'redux'
ERROR in ng:///path/to/Project/angular2-redux-chat-master/src/app/chat-message/chat-message.component.html (12,8): Property 'sender' does not exist on type 'Message'.
on ng build or npm start everthing works fine.
Why is the reference changing in production / can't be resolved?
I also noticed that all import * as Redux from 'redux'; 'warned' except for the import in app.store.ts .
This is also working when replacing the original import with the otherwise warning import * and referencing to Redux.Store for example.
Any help would be appreciated :)
The text was updated successfully, but these errors were encountered:
as a workaround you can replace import { State } from 'redux' by import * as Redux from 'redux' and use Redux.Store instead of simply Store and give a try.
I have upgraded Angular 4 to Angular 5 and revert back the code from:
Old:
import * as Redux from 'redux'; @Inject(AppStore) private store: Redux.Store
New:
import {Store} from "redux"; @Inject(AppStore) private store: Store
Changing from angular/cli:"1.2.0-beta.1" to angular/cli:"^1.4.9"
and running
ng build --prod
causes the following output:
on ng build or npm start everthing works fine.
Why is the reference changing in production / can't be resolved?
I also noticed that all import * as Redux from 'redux'; 'warned' except for the import in app.store.ts .
This is also working when replacing the original import with the otherwise warning import * and referencing to Redux.Store for example.
Any help would be appreciated :)
The text was updated successfully, but these errors were encountered: