Closed snebjorn closed 1 year ago
Hi @snebjorn,
The error here is correct.
The library uses package exports, but ng-zorro-antd.less
is not included as an export as such this file cannot be imported.
The fact that it working on Windows seems to be the bug of https://github.com/webpack-contrib/less-loader.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
Command
build
Is this a regression?
The previous version in which this bug was not present was
No response
Description
importing less styles using the
@import '@pkg/file.less'
syntax on Ubuntu results in an error. Meaning it's without~
. The less loader can't find the file.@import '@pkg/file.less'
works fine on Windows.Minimal Reproduction
Must be done on Ubuntu
@import 'ng-zorro-antd/ng-zorro-antd.less';
to /src/styles.lessException or Error
Your Environment
Anything else relevant?
I first spotted this issue when building my app via Github workflows as they use Ubuntu. I was able to reproduce the issue using WSL.