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

build less, Operation on an invalid type, No errors in lower version #20088

Closed
billpeace opened this issue Feb 19, 2021 · 3 comments · Fixed by #20097
Closed

build less, Operation on an invalid type, No errors in lower version #20088

billpeace opened this issue Feb 19, 2021 · 3 comments · Fixed by #20097

Comments

@billpeace
Copy link

🐞 bug report

Affected Package

The issue is caused by package @angular/....

"@angular-devkit/build-angular": "~0.1100.7",
"@angular/cli": "~11.1.4",
"@angular/compiler-cli": "~11.1.2",

no error

"@angular-devkit/build-angular": "^0.1102.1",
"@angular/cli": "^11.2.1",
"@angular/compiler-cli": "^11.2.1",

have error

Is this a regression?

"@angular-devkit/build-angular": "~0.1100.7",

build no error

"@angular-devkit/build-angular": "^0.1102.1",

build have error:Operation on an invalid type

Description

Error: ./src/styles.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);
^
Operation on an invalid type
Error in E:\Project\testproject1\node_modules\ng-zorro-antd\table\style\size.less (line 53, column 0)
at E:\Project\testproject1\node_modules\webpack\lib\NormalModule.js:316:20

🔬 Minimal Reproduction

🔥 Exception or Error





🌍 Your Environment

Angular Version:





Anything else relevant?

@alan-agius4 alan-agius4 transferred this issue from angular/angular Feb 19, 2021
@alan-agius4 alan-agius4 added the needs: repro steps We cannot reproduce the issue with the information given label Feb 19, 2021
@alan-agius4
Copy link
Collaborator

Probably related to cc51432

@alan-agius4 alan-agius4 added freq1: low Only reported by a handful of users who observe it rarely severity5: regression type: bug/fix area: @angular-devkit/build-angular devkit/build-angular:browser and removed needs: repro steps We cannot reproduce the issue with the information given labels Feb 19, 2021
@ngbot ngbot bot modified the milestone: Backlog Feb 19, 2021
alan-agius4 added a commit that referenced this issue Feb 19, 2021
…iour

In version 4, LESS did a breaking change that set `parens-division` as the default math setting. With this change we change the behavior to mimic version 3.5.

See: https://github.com/less/less.js/releases/tag/v4.0.0

**Note**: In Angular CLI version 12, the math setting will be the default provided by the LESS compiler in v4.0.0

Closes #20088
@alan-agius4
Copy link
Collaborator

Closed via #20097

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Mar 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants