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

Fix "__esModule is not a recognized property" error #167

Merged
merged 1 commit into from
Sep 25, 2017

Conversation

Lyrkan
Copy link
Collaborator

@Lyrkan Lyrkan commented Sep 25, 2017

This PR removes the "__esModule is not a recognized property" error that is currently displayed after importing Encore using an ES6 import through a webpack.config.babel.js file (fixes #166).


done();
});
});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this test be inside functional.js instead? Or is there a reason to have it here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The issue comes from the way the index.js file is imported in webpack.config.babel.js, and tests in functional.js skip that step by directly creating an instance of WebpackConfig.

I guess we could move the whole test case in functional.js but it would still be some kind of smoke test.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nah, works for me here - I just wanted to make sure there was some reason. It's most important for me that it's tested :)

@weaverryan
Copy link
Member

Thanks for the great and fast fix!

@weaverryan weaverryan merged commit 78ac47a into symfony:master Sep 25, 2017
weaverryan added a commit that referenced this pull request Sep 25, 2017
This PR was merged into the master branch.

Discussion
----------

Fix "__esModule is not a recognized property" error

This PR removes the "__esModule is not a recognized property" error that is currently displayed after importing Encore using an ES6 import through a `webpack.config.babel.js` file (fixes #166).

Commits
-------

78ac47a Fix "__esModule is not a recognized property" error when using a webpack.config.babel.js file (#166)
@Lyrkan Lyrkan deleted the fix-babel-webpack-config branch September 26, 2017 08:44
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

Successfully merging this pull request may close these issues.

"Error: Encore.__esModule is not a recognized property or method." after upgrade to 0.15
2 participants