Module build failed (from ./node_modules/html-loader/dist/cjs.js):
TypeError: this.getOptions is not a function
Module build failed (from ./node_modules/html-loader/dist/cjs.js):
TypeError: this.getOptions is not a function
在终端中运行 npm run serve 出现以上错 ,注意点:是html-loader
原因:安装的 html-loader 版本过高
解决办法: 终端输入npm i -D html-loader@0.5.5
npm i -D html-loader@0.5.5