Closed
Description
It seems that v3.10.0 breaks my build, webpack logs below:
ERROR in ./src/pages/score/components/current/no-join/index.less
Module build failed (from ./node_modules/_mini-css-extract-plugin@0.5.0@mini-css-extract-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from ./node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js):
Class constructor FileManager cannot be invoked without 'new'
in undefined (line undefined, column undefined)
at runLoaders (/home/admin/build/node_modules/_webpack@4.39.2@webpack/lib/NormalModule.js:313:20)
at /home/admin/build/node_modules/_loader-runner@2.4.0@loader-runner/lib/LoaderRunner.js:367:11
at /home/admin/build/node_modules/_loader-runner@2.4.0@loader-runner/lib/LoaderRunner.js:233:18
at context.callback (/home/admin/build/node_modules/_loader-runner@2.4.0@loader-runner/lib/LoaderRunner.js:111:13)
Everything is ok when downgrade to v3.9.0, please investigate this issue and hope to fix it as soon as possible.
Activity
xiaoningzihai commentedon Aug 17, 2019
I have the same problem,you mast change you 'package.json' => "less": "~3.9.0", limit version
10W8K commentedon Aug 17, 2019
+1
AlwaysSkylll commentedon Aug 17, 2019
+1
lzf0402 commentedon Aug 17, 2019
+1!
急 ~
Liqihan commentedon Aug 17, 2019
+1
yolo2013 commentedon Aug 17, 2019
same problem
Doneitha commentedon Aug 17, 2019
+1 version less 3.9.0 less-loader 4.1.0
Doneitha commentedon Aug 17, 2019
可以把package.json中 less版本的 ^ 去掉 重新安装一下 v3.9.0 应该就可以解决问题 大家可以试一下
虽然 锁定了版本 但是由于 ^, 所以会下载3 一下的最新版本, 最新版本应该是有问题的。
lizux commentedon Aug 17, 2019
+1
wangmingquan commentedon Aug 17, 2019
+1
AlwaysSkylll commentedon Aug 17, 2019
const shortname = new this.less.FileManager().extractUrlParts(filename).filename;
这个类似代码引起的?
Tindtily commentedon Aug 17, 2019
omg, i limited the version to 3.9.0,works.
starzle commentedon Aug 17, 2019
Same here. npm picks up this "minor" release automatically, and breaks all of my builds. :(
huxiaoqi567 commentedon Aug 17, 2019
+1
86 remaining items