2***@qq.com
2***@qq.com
  • 发布:2019-08-18 11:03
  • 更新:2019-08-19 10:51
  • 阅读:4315

uni app 编译时失败

分类:uni-app

报下面的错误信息
10:57:43.304 Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
10:57:43.305 ModuleBuildError: Module build failed (from ./node_modules/less-loader/dist/cjs.js):
10:57:43.313 Class constructor FileManager cannot be invoked without 'new'
10:57:43.314 in undefined (line undefined, column undefined)
10:57:43.321 at runLoaders (E:\Hbuilder\HBuilderX\plugins\uniapp-cli\node_modules\webpack\lib\NormalModule.js:301:20)
10:57:43.323 at E:\Hbuilder\HBuilderX\plugins\uniapp-cli\node_modules\loader-runner\lib\LoaderRunner.js:367:11
10:57:43.339 at E:\Hbuilder\HBuilderX\plugins\uniapp-cli\node_modules\loader-runner\lib\LoaderRunner.js:233:18
10:57:43.340 at context.callback (E:\Hbuilder\HBuilderX\plugins\uniapp-cli\node_modules\loader-runner\lib\LoaderRunner.js:111:13)
10:57:43.347 at <anonymous>
10:57:43.349 at runMicrotasksCallback (internal/process/next_tick.js:121:5)
10:57:43.359 at _combinedTickCallback (internal/process/next_tick.js:131:7)
10:57:43.360 at process._tickCallback (internal/process/next_tick.js:180:9)
10:57:43.371 ERROR Build failed with errors.

2019-08-18 11:03 负责人:无 分享
已邀请:
豆豆er

豆豆er

将有用Less的地方全部改为Scss试试

  • 1***@qq.com

    感谢 我是无语啦 less就不能用啦

    2019-08-19 10:52

DCloud_HB_WDL

DCloud_HB_WDL

服务器已锁定less插件版本。
卸载less插件,重新安装less插件试试。

  • 1***@qq.com

    这样好像还是不行

    2019-08-19 10:54

该问题目前已经被锁定, 无法添加新回复