The first method:
Add “@babel/compat-data”: “7.9.0” to the devDependencies object in package.json
Second method:
npminstall-Dbabel-loader@babel/core@babel/preset-envwebpack
restart!
Similar Posts:
- webpack4 Cannot find module ‘@babel/core’ [Solved]
- [Solved] Vue installation Babel dependency error
- vue ‘Couldn’t find preset “es2015” relative to directory’
- Cannot find module ‘@babel/core’ [How to Solve]
- Nuxt module build failed error report
- [Solved] MODULE BUILD FAILED: ERROR: COULDN’T FIND PRESET “ES2015” RELATIVE TO DIRECTORY
- [Solved] app crashed – waiting for file changes before starting…
- [Two Solutions] Syntax error: unexpected token import
- [Solved] react Project Error: Support for the experimental syntax ‘decorators-legacy’ isn’t currently enabled
- Error in xxx.js from uglifyjs after elementui upgrade [How to Solve]