为了账号安全,请及时绑定邮箱和手机立即绑定

HBuilderX less引入后编译报错

Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):

16:49:45.899 ModuleBuildError: Module build failed (from ./node_modules/less-loader/dist/cjs.js):

16:49:45.905 Class constructor FileManager cannot be invoked without 'new'

16:49:45.911       in undefined (line undefined, column undefined)

16:49:45.912     at runLoaders (/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/webpack/lib/NormalModule.js:301:20)

16:49:45.924     at /Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/loader-runner/lib/LoaderRunner.js:367:11

16:49:45.927     at /Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/loader-runner/lib/LoaderRunner.js:233:18

16:49:45.938     at context.callback (/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/loader-runner/lib/LoaderRunner.js:111:13)

16:49:45.939     at <anonymous>

16:49:45.955     at runMicrotasksCallback (internal/process/next_tick.js:121:5)

16:49:45.972     at _combinedTickCallback (internal/process/next_tick.js:131:7)

16:49:45.972     at process._tickCallback (internal/process/next_tick.js:180:9)

16:49:46.008  ERROR  Build failed with errors.


正在回答

1 回答

删掉项目,重新创建一个项目再试试

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

HBuilderX less引入后编译报错

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信