Open jblakehm opened 5 years ago
That's definitely a weird. Your best bet would be upgrading all your packages to stable Babel versions. Sounds like you have a plugin/preset that still depends specifically on a beta version.
@loganfsmyth Is there any way to narrow it down? I've manually upgraded all build-related plugins. I added the devDeps for what they ended up being after upgrading.
Stacktrace only goes from babel-loader to babel/helper-plugin-utils
main.chunk.js:10 Uncaught Error: Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: Requires Babel "^7.0.0-beta.41", but was loaded with "7.2.2". You'll need to update your @babel/core version.
at throwVersionError (:3000/Users/jj/projects/Web/web/node_modules/@babel/helper-plugin-utils/lib/index.js:63)
at Object.assertVersion (:3000/Users/jj/projects/Web/web/node_modules/@babel/helper-plugin-utils/lib/index.js:13)
at _default (:3000/Users/jj/projects/Web/web/node_modules/@babel/preset-react/lib/index.js:61)
at :3000/Users/jj/projects/Web/web/node_modules/@babel/helper-plugin-utils/lib/index.js:19
at Object.<anonymous> (:3000/Users/jj/projects/Web/web/node_modules/babel-loader/lib/index.js:85)
at Generator.next (<anonymous>)
at asyncGeneratorStep (:3000/Users/jj/projects/Web/web/node_modules/babel-loader/lib/index.js:3)
at _next (:3000/Users/jj/projects/Web/web/node_modules/babel-loader/lib/index.js:5)
at :3000/Users/jj/projects/Web/web/node_modules/babel-loader/lib/index.js:5
at new Promise (<anonymous>)
at Object.<anonymous> (:3000/Users/jj/projects/Web/web/node_modules/babel-loader/lib/index.js:5)
at Object._loader (:3000/Users/jj/projects/Web/web/node_modules/babel-loader/lib/index.js:220)
at Object.loader (:3000/Users/jj/projects/Web/web/node_modules/babel-loader/lib/index.js:56)
at Object.<anonymous> (:3000/Users/jj/projects/Web/web/node_modules/babel-loader/lib/index.js:51)
at Object../src/index.js (main.chunk.js:10)
at __webpack_require__ (bootstrap:781)
at fn (bootstrap:149)
at Object.0 (main.chunk.js:22)
at __webpack_require__ (bootstrap:781)
at checkDeferredModules (bootstrap:45)
at Array.webpackJsonpCallback [as push] (bootstrap:32)
at main.chunk.js:1
I'm sorry it took me a while to get back to this.
This error is because of your line
customize: require.resolve('@babel/preset-react'),
Did you perhaps mean
presets: [require.resolve('@babel/preset-react')]
?
I'm sorry it took me a while to get back to this.
This error is because of your line
customize: require.resolve('@babel/preset-react'),
Did you perhaps mean
presets: [require.resolve('@babel/preset-react')]
?
I think this is a byproduct of Jasmine's otherwise-good docs for setting up React browser testing.
I'm submitting a bug report
Webpack Version: 4.26.1
Babel Core Version: 7.2.0
Babel Loader Version: 8.0.4
Please tell us about your environment: Mac 10.13
Current behavior: Getting this when I run webpack dev from an ejected CRA: "Error: Requires Babel "^7.0.0-beta.41", but was loaded with "7.2.0". You'll need to update your @babel/core version." Seems to be coming from babel/helper-module-imports
Expected/desired behavior: To not get an error message telling me to upgrade when Im already upgrade.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem along with a gist/jsbin of your webpack configuration.
What is the expected behavior? I assume I should be able to run babel-loader with @babel/core > 7.1
Package.json DevDependencies
babel.config.js
webpack.config.js