Issues mixing babel versions
See original GitHub issueThe app is depending on 7.x \w decorators, but something is going sideways. Here is a stack trace (although I will debug more)
< Requires Babel "^7.0.0-0", but was loaded with "6.26.3". If you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for the first entry that doesn't mention "@babel/core" or "babel-core" to see what is
calling Babel.
< at throwVersionError (/Users/spenner/l/pemberly-example-web_trunk/node_modules/@babel/helper-plugin-utils/lib/index.js:65:11)
< at Object.assertVersion (/Users/spenner/l/pemberly-example-web_trunk/node_modules/@babel/helper-plugin-utils/lib/index.js:13:11)
< at _default (/Users/spenner/l/pemberly-example-web_trunk/node_modules/@babel/plugin-proposal-decorators/lib/index.js:43:7)
< at /Users/spenner/l/pemberly-example-web_trunk/node_modules/@babel/helper-plugin-utils/lib/index.js:19:12
< at Function.memoisePluginContainer (/Users/spenner/src/embroider-build/embroider/node_modules/babel-core/lib/transformation/file/options/option-manager.js:113:13)
< at Function.normalisePlugin (/Users/spenner/src/embroider-build/embroider/node_modules/babel-core/lib/transformation/file/options/option-manager.js:146:32)
< at /Users/spenner/src/embroider-build/embroider/node_modules/babel-core/lib/transformation/file/options/option-manager.js:184:30
< at Array.map (<anonymous>)
< at Function.normalisePlugins (/Users/spenner/src/embroider-build/embroider/node_modules/babel-core/lib/transformation/file/options/option-manager.js:158:20)
< at OptionManager.mergeOptions (/Users/spenner/src/embroider-build/embroider/node_modules/babel-core/lib/transformation/file/options/option-manager.js:234:36)
< at OptionManager.init (/Users/spenner/src/embroider-build/embroider/node_modules/babel-core/lib/transformation/file/options/option-manager.js:368:12)
< at File.initOptions (/Users/spenner/src/embroider-build/embroider/node_modules/babel-core/lib/transformation/file/index.js:212:65)
< at new File (/Users/spenner/src/embroider-build/embroider/node_modules/babel-core/lib/transformation/file/index.js:135:24)
< at Pipeline.transform (/Users/spenner/src/embroider-build/embroider/node_modules/babel-core/lib/transformation/pipeline.js:46:16)
< at transpile (/Users/spenner/src/embroider-build/embroider/node_modules/babel-loader/lib/index.js:50:20)
< at Object.module.exports (/Users/spenner/src/embroider-build/embroider/node_modules/babel-loader/lib/index.js:173:20)
< ERROR in ./assets/test.js
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
presets issue with projects mixing v6 and v5 version of babel
I am seeing this issue too - using babelify 7.2.0 with presets - when other (external) modules are required that were built with...
Read more >Babel issue running npm run dev after upgrade to Mix
I have an old Laravel App which I updated to Laravel 5.8. I removed all old resources files, package-lock.json, yarn.lock and gulp files....
Read more >Upgrade Laravel Mix to Use Babel 7 - webpack - Stack Overflow
I need to update Laravel mix to use Babel 7. I update my dependencies to use Laravel Mix 4.0.7 that should support Babel...
Read more >Mixing Email with Babel - Articles on logging by Ceki
She submits a specially composed message I to the mix. I includes M and Bob's net- work address. It is intelligible only to...
Read more >TypeScript With Babel: A Beautiful Marriage - I Am Turns
Chaining together two separate compilers (TypeScript and Babel) is no easy feat. The compilation flow becomes: TS > TS Compiler > JS >...
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
@stefanpenner it’s also babel-loader that needs to be toggled.
Fixed via d89a0721112138e07a1b6bfb4932aa63f1f0e32f