You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Class constructor FileManager cannot be invoked without 'new'. #3414
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.
Reacted by Arnaud Benhamdine, Ryder Xie, Diego Melendez, JL-Code, 撒点料儿, Edo, xxxxxx, Igor Scheller, Steven Zhang, Charles and 39 more
No one with less-loader v4 issues seemed willing to test [3.10.2] 🤷♂, but in my testing, Less-loader's v4 tests broke differently with 3.10.1 (class constructor issue), and broke the same with this PR. So..... not sure if it fixes it, but it should be no worse?
I merged that possible fix into master (but not yet released to NPM). Still would love for someone to confirm before releasing instead of the +1's.
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!
急 ~
groveLqh 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
smackgg commentedon Aug 17, 2019
v3.10.0 same error
50 remaining items
vipcxj commentedon Aug 20, 2019
Just before, I delete the node_modules and type
npm i, this error happen. So the latest version3.10.1still has this bug. I choose downgrade to 3.9.0ezgitek commentedon Aug 20, 2019
How would I fix this bug if I am using @zeit/next-less? Any help appreciated.
hua1995116 commentedon Aug 20, 2019
@ezgitek
build: downgrade to [email protected]
buerxixi commentedon Aug 20, 2019
https://forum.vuejs.org/t/vue-cli/72008/7
"less": "^3.10.1",
"less-loader": "^5.0.0",
is running
matthew-dean commentedon Aug 20, 2019
Merged: #3421
I merged that possible fix into master (but not yet released to NPM). Still would love for someone to confirm before releasing instead of the +1's.
jenniferneale commentedon Aug 20, 2019
I can confirm I just tried the current master branch of less locally with less-loader ^4.1.0, and my project is able to build again. 👍
jenniferneale commentedon Aug 20, 2019
Thanks for your work on this!
matthew-dean commentedon Aug 20, 2019
@jenniferneale Thanks for confirming! I'll publish to NPM later today then, can't do it from work.
pod4g commentedon Aug 21, 2019
+1
cockpit: Use less-loader 5.0.0 or later
cockpit: Use less-loader 5.0.0 or later
hungmanle commentedon Aug 23, 2019
Is this issue fixed with 3.10.3?
matthew-dean commentedon Aug 25, 2019
@h4ngman Should be. Re-open if not.