Closed montella1507 closed 3 months ago
Thanks for reporting this!
The @nx/angular:ng-packagr-lite
doesn't support a stylePreprocessorOptions
option. Please note that the configuration snippet shared in the description is invalid:
"build": {
"stylePreprocessorOptions": {
"includePaths": [
"libs/core/src/lib/styles/tsm-theme"
]
},
"executor": "@nx/angular:ng-packagr-lite",
The stylePreprocessorOptions
is specified as a top-level option of a target, which is not correct. As mentioned, it's also incorrect to provide it to the options
of the @nx/angular:ng-packagr-lite
executor.
The correct way to set that option is in the ng-package.json
file: https://github.com/ng-packagr/ng-packagr/blob/main/docs/style-include-paths.md.
@leosvelperez it worked. Thank you very much and have a nice day
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
We have buildable library in monorepo with this configuration inside project.json
and this SCSS code:
Referenced _common.scss has path: libs/core/src/lib/styles/tsm-theme/vendor/config-form/widgets/src/lib/_common.scss
But we got error:
We have tried everything... Both in import:
_common @use
and in includePaths:
Nothing works.
However... we are able to build
dtl-select-editor.component.scss
manually via commnad-line SASS:sass /Users/****/WebstormProjects/tsm/libs/config-form/widgets/src/lib/framework-library/select/dtl-select-editor.component.scss --load-path="/Users/****/WebstormProjects/tsm/libs/core/src/lib/styles/tsm-theme"
Is it includePaths correctly send to SASS inside NX executor?
We are not 100% sure, but we think it worked in NX16.
"serve" works as well.
Little bit strange is, that it works for CSS files (it can resolve css file) but not SCSS one.
Expected Behavior
IncludePath should have been sent to SASS correctly.
GitHub Repo
No response
Steps to Reproduce
Reference SCSS file from one library in another one via import and includePaths
Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
No response