babel JS file can't resolve “@babel/runtime/helpers/builtin/classCallCheck”

后端 未结 4 1378
旧巷少年郎
旧巷少年郎 2020-12-04 01:19

on-rest my project was working great untill I delete my node_modules file and try to re-install npm package.

I am getting this error

./node_modules/         


        
4条回答
  •  一生所求
    2020-12-04 02:08

    In my case the problem was in relative paths and complex project structure, so that I had to specify exact location of my node_modules directory:

    module.exports = {  
        resolve: {
          modules: [
            path.resolve(__dirname, "node_modules")
          ],
      ...
    

提交回复
热议问题