Skip to content

angular/cli:"1.4.9" - export 'Store' (imported as 'Redux') was not found in 'redux' on build --prod #8

Open
@SimonSchillberg

Description

@SimonSchillberg

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 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions