Closed Yberion closed 2 months ago
I have the exact same issue, managed to work around it by installing @material/typography (and a few others) directly (pnpm install --save @material/typography
). This probably occurs due to pnpm's stricter dependency resolution requirements that make it so blazingly fast.
Ah, maybe this won't be necessary in the futur:
I'm also getting the same errors with:
@material/feature-targeting
(inside @material/typography
)@material/theme
(inside @material/typography
)@material/tokens
@material/elevation
@material/animation
(inside @material/elevation
)@material/base
(inside @material/elevation
)@material/rtl
(inside @material/elevation
)@material/textfield
@material/density
(inside @material/textfield
)@material/floating-label
(inside @material/textfield
)@material/notched-outline
(inside @material/textfield
)@material/shape
(inside @material/notched-outline
)@material/dom
(inside @material/textfield
)@material/line-ripple
(inside @material/textfield
)I'll just wait the next version.
I had to manually install all of them, it's the first time I'm getting this somehow.
That doesn't say why it does work properly with pnpm
when the lib is not buildable.
Works fine when building my app that uses the (not buildable) lib.
The probem with Angular Material is fixed starting from Angular Material 18.1.2
as they don't use packages listed above (https://github.com/angular/components/pull/29472).
The issue is still relevant as it could occure in other packages.
The library build here uses Angular's ng-packagr
under the hood. I'm going to close this issue as it has been scoped to a particular package which has been updated and fixed. If this arises for other packages, we can reopen and address.
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.
Current Behavior
I'm getting an error trying to build a lib that contain scss using
@angular/material
.On my real app, when the lib wasn't buildable it worked fine.
Maybe I'm doing something wrong with the setup or usage of scss import (
@use
)Expected Behavior
No error.
GitHub Repo
https://github.com/Yberion/angular-nx
Steps to Reproduce
pnpm install --no-frozen-lockfile
pnpm run lib:test:build
Nx Report
Failure Logs
Package Manager Version
pnpm 9.5.0
Operating System
Additional Information
I'm not sure, but there's a similar problem here https://github.com/angular/angular-cli/issues/27167
Removing parallel or setting to 1 does not fix the problem.