问答详情
源自:2-1 class类定义语法

npm start的时候报错怎么回事啊

Hash: 6beb634f3d7205264207

Version: webpack 4.29.6

Time: 107ms

Built at: 2019-03-01 15:25:43

  Asset      Size  Chunks             Chunk Names

main.js  11.2 KiB    main  [emitted]  main

Entrypoint main = main.js

[./src/index.js] 2.75 KiB {main} [not cacheable] [built] [failed] [1 error]


ERROR in ./src/index.js

Module build failed (from ./node_modules/babel-loader/lib/index.js):

Error: Cannot find module '@babel/core'


提问者:慕虎7937911 2019-03-01 15:27

个回答

  • 大佬帮帮我吧
    2019-07-26 15:41:25

    npm i babel-loader@7.1.4

  • ouyangxuanyun
    2019-03-09 19:10:51

    缺少 @babel/core 模块,需要安装,可以检查一下package.json 或者直接

    npm install @babel/core