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.

Issues mixing babel versions

See original GitHub issue

The 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:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
stefanpennercommented, Feb 24, 2019

@stefanpenner it’s also babel-loader that needs to be toggled.

0reactions
ef4commented, Apr 7, 2019

Fixed via d89a0721112138e07a1b6bfb4932aa63f1f0e32f

Read more comments on GitHub >

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

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