Just deleted the dependent package for some reasons and reinstalled it. The result is an error
deprecate babel-preset-es2015@* ???? Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update!
After checking, it turns out that Babel preset es2015 has been started and abandoned. Now Babel preset env is the latest one. Just reinstall it
npm install babel-preset-env --save
Similar Posts:
- vue ‘Couldn’t find preset “es2015” relative to directory’
- [Solved] MODULE BUILD FAILED: ERROR: COULDN’T FIND PRESET “ES2015” RELATIVE TO DIRECTORY
- Cannot find module ‘@babel/core’ [How to Solve]
- [Solved] NPM Run Project Error: Cannot find module ‘@babel/compat-data/corejs3-shipped-proposals’
- [Solved] app crashed – waiting for file changes before starting…
- Nuxt module build failed error report
- [Solved] Vue/cli install element error: Error: cannot find module ‘Babel plugin component’
- [Two Solutions] Syntax error: unexpected token import
- webpack4 Cannot find module ‘@babel/core’ [Solved]
- [Solved] Node.js runs ES6 default import file error: import m1 from’./m1.js’ ^^ SyntaxError: Unexpected identifier