presets issue with projects mixing v6 and v5 version of babel
See original GitHub issueUsing npm v 3.3.9 I use browserify + watchify + babelify to compile my react project. Browserify is configured this way:
"browserify": {
"transform": ["babelify"]
}
I’ve got one node module set up with a .babelrc file:
{"presets":["es2015"]}
I’ve got my main project compiled with babelify and babel-core v5 when the project is compiles I’ve got an option error:
ReferenceError: [BABEL]
.../node_modules/flux-datastore/lib/.....js:
Unknown option:
/.../node_modules/.../.babelrc.presets
while parsing file: /.../node_modules/flux-datastore/....js
babel core v5 tries to compile with subproject options presets wich might not exists in that version.
I’m not sur if this is a babel or babelify issue. Any idea if this can be fixed in conf ?
Issue Analytics
- State:
- Created 8 years ago
- Comments:14 (5 by maintainers)
Top Results From Across the Web
Upgrade to Babel 7
Because not every breaking change will affect every project, we've sorted the sections by the likelihood of a change breaking tests when upgrading....
Read more >@babel/preset-env | Yarn - Package Manager
Intro. Babel is a tool that helps you write code in the latest version of JavaScript. When your supported environments don't support certain...
Read more >Extending Mix | Laravel Mix Documentation
Behind the scenes, Mix will call this function after the underlying webpack configuration object has been constructed. This will give you a chance...
Read more >How to transpile ES modules with webpack and Node.js
js versions. Importing and exporting functions. See below an example of how to import and export a function with ES module syntax: // ......
Read more >Laravel Mix - Laravel - The PHP Framework For Web Artisans
Laravel is a PHP web application framework with expressive, elegant syntax. We've already laid the foundation — freeing you to create without sweating...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This issue was also resolved for me by:
Yep updating to
babel@6.3.26
andbabelify@7.2.0
resolved this for me.