New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Class constructor FileManager cannot be invoked without 'new' #18343
Comments
锁定之前版本 3.16.0,不会报错。 |
Trace less/less.js#3414 |
What's this fix for this? All our builds stopped working, here's the error:
|
It is a bug of less, not antd's, please trace less/less.js#3414 and webpack-contrib/less-loader#300 for further fix. |
@afc163 they suggest locking the less version, which would be done in antd's package.json. |
antd didn't depend less. |
@afc163 less-loader then, we fixed it by adding:
|
|
@afc163 it did, and it fixed the issue for us. Literally that's all we added and the problem went away. |
Reproduction link
https://github.com/ant-design/ant-design/
Steps to reproduce
编译报错
./node_modules/antd/es/tag/style/index.less
Class constructor FileManager cannot be invoked without 'new'
in undefined (line undefined, column undefined)
What is expected?
成功编译
What is actually happening?
./node_modules/antd/es/tag/style/index.less
Class constructor FileManager cannot be invoked without 'new'
in undefined (line undefined, column undefined)
The text was updated successfully, but these errors were encountered: