[Solved] MODULE BUILD FAILED: ERROR: COULDN’T FIND PRESET “ES2015” RELATIVE TO DIRECTORY

NPM run dev encountered an error:

Module build failed: Error: Couldn't find preset "es2015" relative to directory "/Users/wdx/Desktop/Adjuster"

When we encounter this problem, we need to install babel-preset-es2015 :

npm install babel-preset-es2015 --save-dev

After executing this command, install babel-preset-es2015 and it will not report errors. npm run dev```

Similar Posts: