ERROR in Cannot find module 'babel-core'. using react.js, webpack, and express server

前端 未结 5 1242
时光取名叫无心
时光取名叫无心 2020-12-22 22:37

Whenever I run webpack in the terminal I get:

Hash: efea76b1048c3a97b963
Version: webpack 1.12.13
Time: 33ms
    + 1 hidden modules

ERROR in Ca         


        
5条回答
  •  温柔的废话
    2020-12-22 23:06

    I just meet this error, and solved by installing babel-core. But the interesting is I found babel-core does exist in babel-loader's peerDependencies.

    https://github.com/babel/babel-loader/blob/master/package.json

    Why peerDependecies not install automatically, after a few searching work I found this in npm blog.

    peerDependencies will not automatically install anymore.

提交回复
热议问题