Webpack + Babel: Couldn't find preset “es2015” relative to directory

前端 未结 5 1589
情歌与酒
情歌与酒 2020-12-13 20:35

I have a React project using Webpack and Babel. When I created it on an office computer, the Webpack ran fine. When I cloned the project onto my personal computer, it gave t

5条回答
  •  情深已故
    2020-12-13 21:07

    I resolved this issue when I removed .babelrc (hidden) file from "/Users/username" directory.

提交回复
热议问题