-
-
Notifications
You must be signed in to change notification settings - Fork 158
Trouble when updating from 1.4 to 1.5 #334
Comments
Are you using 1.5 or 1.5.1? |
Both 1.5 and 1.5.1 give me this error |
Can you provide more information? Config etc |
Sure, I'm using it like this in my code.
|
Using node 7.1 |
Updated to node 7.10 and the error still occurs. |
Your usage of
to compile just those modules. This issue was caused because of the changes in #324 because that I'll leave it up to others as to whether this is worth changing. |
I removed the ignore options, reinstalled the package and I had no success. Still having the same error using v1.5 |
@spoldman any chance you could put up a small repo that reproduces the problem? |
I have the same problem, I need to include some node_modules because of the infrastructure at work. So our entry looks like this:
This should be still using the default of .babelrc:
We run similar options through webpack when bundling and it works fine, this just breaks on our server side render logic. |
I'm still having this issue trying to update, version 1.6 still has the same problem for me. I had some time to create a repository to replicate this issue hope that helps solving the issue. It can be found here: https://github.com/spoldman/Update-issue-with-babel-preset-env |
@spoldman thanks for creating the repo! Just to be clear, you said this worked with |
@spoldman can you try changing your @yavorsky and I were digging into this... and it looks like in browserslist 2.x (which we bumped in 1.4 -> 1.5), they switched to using |
@existentialism Looks like this works. What changed to cause this? |
Combination of us upgrading to browserslist 2.0 during 1.4 -> 1.5, which happened to expose one (of many) bugs with using "only" and babel-register, have you tried using Babel 7 at all? We hope many of the issues there have been resolved, and if not, we should definitely get it taken care of! Thanks again for the cooperation and patience! |
I will look into updating to babel 7. Thanks for the help. |
I'm getting an error after update of this package. I did a bit of digging and it looks like _targetsParser2 i undefined in the built source.
Here is the stack trace
TypeError: Cannot read property 'default' of undefined (While processing preset: "C:\Code\Frontend\Cosmic\packages\mono-cli\node_modules\babel-preset-env\lib\index.js") (While processing preset: "C:\Code\Frontend\Cosmic\packages\mono-cli\node_modules\babel-preset-env\lib\index.js")
at buildPreset (C:\Code\Frontend\Cosmic\packages\mono-cli\node_modules\babel-preset-env\lib\index.js:148:36)
at C:\Code\Frontend\Cosmic\packages\mono-cli\node_modules\babel-core\lib\transformation\file\options\option-manager.js:317:46
at Array.map (native)
at OptionManager.resolvePresets (C:\Code\Frontend\Cosmic\packages\mono-cli\node_modules\babel-core\lib\transformation\file\options\option-manager.js:275:20)
at OptionManager.mergePresets (C:\Code\Frontend\Cosmic\packages\mono-cli\node_modules\babel-core\lib\transformation\file\options\option-manager.js:264:10)
at OptionManager.mergeOptions (C:\Code\Frontend\Cosmic\packages\mono-cli\node_modules\babel-core\lib\transformation\file\options\option-manager.js:249:14)
at OptionManager.init (C:\Code\Frontend\Cosmic\packages\mono-cli\node_modules\babel-core\lib\transformation\file\options\option-manager.js:368:12)
at compile (C:\Code\Frontend\Cosmic\packages\mono-cli\node_modules\babel-register\lib\node.js:103:45)
at loader (C:\Code\Frontend\Cosmic\packages\mono-cli\node_modules\babel-register\lib\node.js:144:14)
at Object.require.extensions.(anonymous function) [as .js] (C:\Code\Frontend\Cosmic\packages\mono-cli\node_modules\babel-register\lib\node.js:154:7)
The text was updated successfully, but these errors were encountered: