问答详情
源自:-

webpack 构建失败

webpack.config.js

const path = require('path')
module.exports = {
    entry: path.resolve(__dirname,'./src/index.js'),
    output: {
        path: path.resolve(__dirname,'./dist'),
        filename: 'index-bundle.js'
    }
}

package.json

{
  "name": "03_echarts_webpack",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "build": "webpack"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "devDependencies": {
    "webpack": "^4.43.0",
    "wepack-cli": "^0.0.1-security"
  },
  "dependencies": {
    "echarts": "^4.8.0"
  }
}


当运行 npm run build 报错

http://img3.sycdn.imooc.com/5f0527f90001f40228381266.jpg

提问者:幕布斯4751287 2020-07-08 09:57

个回答