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

Webpack with Babel 6 causes errors because of .babelrc files #42

Closed
josvos opened this issue Mar 10, 2016 · 4 comments
Closed

Webpack with Babel 6 causes errors because of .babelrc files #42

josvos opened this issue Mar 10, 2016 · 4 comments

Comments

@josvos
Copy link

josvos commented Mar 10, 2016

Using webpack (with babel-loader) causes errors like "Using removed Babel 5 option". Removing or renaming all (5) .babelrc files in the node_modules/redux-devtools-log-monitor tree solves this problem.

@zalmoxisus
Copy link
Collaborator

See the solution. If for some reason, you need babel to process node_modules, better to create PRs to those dependencies as we did here.

@josvos
Copy link
Author

josvos commented Mar 10, 2016

OK, thanks, this works, I wasn't realizing that my node_modules was processed by Babel. Still, should these .babelrc files (being incompatible with Babel6 AFAICS) be there? They are the only .babelrc files in my whole node_modules tree...

@gaearon
Copy link
Owner

gaearon commented Apr 2, 2016

Recent versions of redux-devtools-log-monitor do not include .babelrc in npm package.

@gaearon gaearon closed this as completed Apr 2, 2016
@gaearon
Copy link
Owner

gaearon commented Apr 2, 2016

Also you definitely shouldn’t be transpiling third-party modules with Babel. All kinds of stuff can break.

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

3 participants