Skip to content
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

Angular 11.1 LESS not building issue #6368

Closed
dylanvdmerwe opened this issue Jan 22, 2021 · 1 comment
Closed

Angular 11.1 LESS not building issue #6368

dylanvdmerwe opened this issue Jan 22, 2021 · 1 comment

Comments

@dylanvdmerwe
Copy link

Reproduction link

https://stackblitz.com/edit/ng-zorro-antd-ivy-pu6fe9?file=package.json

Steps to reproduce

Upgrade to Angular 11.1.0.

What is expected?

The project should compile correctly.

What is actually happening?

There is a ModuleBuildError caused by a problem with size.less in the table syles.

Error: ./src/theme.less
Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from ./node_modules/less-loader/dist/cjs.js):


// ================================================================
.table-size(~'middle', @table-padding-vertical-md, @table-padding-horizontal-md, @table-font-size-md);
^
Cannot read property 'numerator' of undefined
      Error in C:\Projects\WunderlustAPI\WebsiteProjects\Website.Site\wunderlust-app\node_modules\ng-zorro-antd\table\style\size.less (line 53, column 0)
    at C:\Projects\WunderlustAPI\WebsiteProjects\Website.Site\wunderlust-app\node_modules\webpack\lib\NormalModule.js:316:20
    at C:\Projects\WunderlustAPI\WebsiteProjects\Website.Site\wunderlust-app\node_modules\loader-runner\lib\LoaderRunner.js:367:11
    at C:\Projects\WunderlustAPI\WebsiteProjects\Website.Site\wunderlust-app\node_modules\loader-runner\lib\LoaderRunner.js:233:18
    at context.callback (C:\Projects\WunderlustAPI\WebsiteProjects\Website.Site\wunderlust-app\node_modules\loader-runner\lib\LoaderRunner.js:111:13)
    at Object.lessLoader (C:\Projects\WunderlustAPI\WebsiteProjects\Website.Site\wunderlust-app\node_modules\less-loader\dist\index.js:57:5)
Environment Info
ng-zorro-antd 11.0.2
Browser Chrome
@vthinkxie
Copy link
Member

duplicated of #6359, you can downgrade less to 3.x as a temp solution.

should be fixed via #6365

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants