vue报错总结
1、building modules 1/1 modules 0 activeevents.js:174throw er; // Unhandled ‘error’ event没有设置host,或者host不对。在 \config\index.js里面更改const path = require('path')module.exports = {dev: {/...
·
1、building modules 1/1 modules 0 activeevents.js:174 throw er; // Unhandled ‘error’ event
原因:没有设置host,或者host不对。在 \config\index.js里面更改
const path = require('path')
module.exports = {
dev: {
// Paths
assetsSubDirectory: 'static',
assetsPublicPath: '/',
proxyTable: {},
// Various Dev Server settings
host: '192.168.9.120', // can be overwritten by process.env.HOST
port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
...
}
2、TypeError: this.getOptions is not a function
原因:stylus-loader安装的版本过高。
原安装版本:
"stylus": "^0.54.8",
"stylus-loader": "^5.0.0",
改为: yarn add stylus-loader@3.0.2
"stylus": "^0.54.8",
"stylus-loader": "^3.0.2",
更多推荐
已为社区贡献4条内容
所有评论(0)