Class constructor FileManager cannot be invoked without 'new'.
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/[email protected]@mini-css-extract-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from ./node_modules/[email protected]@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/[email protected]@webpack/lib/NormalModule.js:313:20)
at /home/admin/build/node_modules/[email protected]@loader-runner/lib/LoaderRunner.js:367:11
at /home/admin/build/node_modules/[email protected]@loader-runner/lib/LoaderRunner.js:233:18
at context.callback (/home/admin/build/node_modules/[email protected]@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.
I have the same problem,you mast change you 'package.json' => "less": "~3.9.0", limit version
+1
+1
+1! 急 ~
+1
same problem
+1 version less 3.9.0 less-loader 4.1.0
可以把package.json中 less版本的 ^ 去掉 重新安装一下 v3.9.0 应该就可以解决问题 大家可以试一下
虽然 锁定了版本 但是由于 ^, 所以会下载3 一下的最新版本, 最新版本应该是有问题的。
+1
+1
const shortname = new this.less.FileManager().extractUrlParts(filename).filename;
这个类似代码引起的?
omg, i limited the version to 3.9.0,works.
Same here. npm picks up this "minor" release automatically, and breaks all of my builds. :(
+1
v3.10.0 same error
+1
hurry
+1
just use [email protected] every thing will be ok
@lixiaohulee unless you're not using less-loader and everything will not be ok