You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current Behavior
Recently I'm trying to setup babel with webpack. and I'm getting an error.
ERROR in ./src/index.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: Cannot find module '@babel/core'
ERROR in ./src/index.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: Cannot find module '@babel/core'
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] build: `webpack --mode production`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Mentos\AppData\Roaming\npm-cache\_logs\2018-09-01T10_50_57_222Z-debug.log
Edits by @JLHwung
If you hit this issue via search engines, please refer to babel/babel#8599 (comment).
Bug Report
Current Behavior
Recently I'm trying to setup babel with webpack. and I'm getting an error.
package.json
package.json
Expected behavior/code
Babel Configuration (.babelrc, package.json, cli command)
debug.log
Environment
Possible Solution
Additional context/Screenshots
I follow the same step in past and it was work fine.
Originally posted by @palak-temp in babel/babel#8599
The text was updated successfully, but these errors were encountered: