Skip to content
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

Embroider | Cannot destructure property 'createStore' of 'redux__WEBPACK_IMPORTED_MODULE_0__.default' #208

Open
austinezell opened this issue Feb 1, 2021 · 1 comment

Comments

@austinezell
Copy link

ember-cli allows for not-to-spec import behaviors

import redux from 'redux';

This line behave as import * as redux from 'redux', when it should only be importing the default export. This behavior is being corrected with the new embroider build process

const { createStore, applyMiddleware, compose } = redux;

Currently, this line is throwing an exception because there is no default export from redux so you cannot desctructure it.

@bloemendal
Copy link

This breaks our embroider build and I would very much appreciate solving this issue.

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

No branches or pull requests

2 participants