报错截图

error.png

解决方法:

修改build/webpack.base.conf.js,其中resize-detector需要对应你自己报错的模块。

修改前

{
test: /\.js$/,
loader: 'babel-loader',
// include: [resolve('src'), resolve('test')]
include: [resolve('src'), resolve('test')]
},

修改后

{
test: /\.js$/,
loader: 'babel-loader',
// include: [resolve('src'), resolve('test')]
include: [resolve('src'), resolve('test'), resolve('node_modules/resize-detector')]
},

上一篇:npm 错误 大集合

下一篇:VUE学习笔记十三:父组件调用子组件方法