Skip to content

LESS Build Fails Due to Missing RTL Import in ng-zorro-antd #9634

@dunglcvn12

Description

@dunglcvn12

Description:
Sometime, I am encountering an issue when building my Angular application with ng-zorro-antd. The build fails with an error related to the missing rtl.less file. The error specifically points to an import inside the ng-zorro-antd styles, where it cannot find the RTL file.

Temporary Workaround:
To fix this issue temporarily, I have to open any .less file in the project and save it. This triggers a rebuild and resolves the issue for a while. However, the issue reoccurs after some time.

Environment:

  • Angular version: v20
  • ng-zorro-antd version: v20
Image

My angular.json file

Image

Thanks for your support

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions