question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

presets issue with projects mixing v6 and v5 version of babel

See original GitHub issue

Using 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:closed
  • Created 8 years ago
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

13reactions
danieldramcommented, Jan 12, 2016

This issue was also resolved for me by:

npm install babelify@7.2.x 
4reactions
mikemaccanacommented, Jan 15, 2016

Yep updating to babel@6.3.26 and babelify@7.2.0 resolved this for me.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found