为了账号安全,请及时绑定邮箱和手机立即绑定

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

正在回答

举报

0/150
提交
取消
Echarts4.0数据可视化-2小时快速入门
  • 参与学习       2444    人
  • 解答问题       14    个

2小时快速入门ECharts4.0开发

进入课程

webpack 构建失败

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信