TypeError: loaderContext.emitError is not a function
at new module.exports (C:\Users\Administrator\Desktop\开发\project\demo\node_modules\vue-loader\lib\index.js:21:19)
at Object.<anonymous> (C:\Users\Administrator\Desktop\开发\project\demo\webpack.config.js:78:9)
at Module._compile (internal/modules/cjs/loader.js:702:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
我估计是你 VueLoaderPlugin 加载不对。
const VueLoaderPlugin = require('vue-loader/lib/plugin');
....
module.exports = {
.....
plugins: [new VueLoaderPlugin(),]
}
什么原因啊?
loaderContext.emitError 这是什么?