build报错 请问什知道什么回事吗?

来源:2-1 vue-loader+webpack项目配置

Eric666666

2019-08-06 17:48

npm run build的时候报错
https://img4.mukewang.com/5d494cd7000185ff14850843.jpg

写回答 关注

5回答

  • qq_凌空_4
    2019-09-11 23:10:52

    你的代码可以build了吗,我的也不可以

  • qq_啊啦嘞_0
    2019-08-14 21:05:16

    {

    "name": "vue-webpack",

    "version": "1.0.0",

    "description": "",

    "main": "index.js",

    "scripts": {

    "test": "echo \"Error: no test specified\" && exit 1",

    "start": " cross-env MODE_ENV=development webpack-dev-server --config build/webpack.config.js",

    "build": "cross-env MODE_ENV=production webpack --config build/webpack.config.js"

    },

    "author": "",

    "license": "ISC",

    "devDependencies": {

    "@babel/core": "^7.5.5",

    "babel-loader": "^8.0.6",

    "babel-plugin-component": "^1.1.1",

    "cross-env": "^5.2.0",

    "css-loader": "^3.0.0",

    "file-loader": "^4.2.0",

    "html-webpack-plugin": "^3.2.0",

    "style-loader": "^0.23.1",

    "vue-loader": "^15.7.0",

    "vue-template-compiler": "^2.6.10",

    "webpack": "^4.35.3",

    "webpack-cli": "^3.3.5",

    "webpack-dev-server": "^3.7.2"

    },

    "dependencies": {

    "element-ui": "^2.11.1",

    "vue": "^2.6.10",

    "vue-router": "^3.0.7"

    }

    }



    Eric66...

    有没有可以运行的打包代码 可能视频是比较久的 按照视频的写运行不了

    2019-09-05 17:33:24

    共 1 条回复 >

  • 慕娘0809553
    2019-08-08 22:36:58

    你前面npm install 没有安装vue-template-compiler

  • Eric666666
    2019-08-07 13:59:42

    index.js 就是这样

    https://img2.mukewang.com/5d4a68ab0001211104360298.jpg


  • qq_啊啦嘞_0
    2019-08-06 21:31:31

    index.js代码是怎么写的?

    Eric66...

    我截图了代码在我的回复里

    2019-08-07 14:00:10

    共 1 条回复 >

Vue+Webpack打造todo应用

用前端最热门框架Vue+最火打包工具Webpack打造todo应用

84605 学习 · 787 问题

查看课程

相似问题