Closed davidpanic closed 1 year ago
After some more research, this issue is occurring because webpack 5 now fully respects the exports field and will complain if something is missing.
This is a very simple fix, all that is required is to modify your package.json files to include the styles in the exports:
{
...
"exports": {
...,
"./styles/": "./styles/"
}
}
@davidpanic - Thank you for contacting us.
We have validated the query. To avoid style compilation issues, map the SCSS styles in the SCSS file path src/styles.scss
and add the stylePreprocessorOptions
option under apps in the angular.json file.
"styles": [ "src/styles.scss" ],"stylePreprocessorOptions": { "includePaths": [ "node_modules/@syncfusion" ] },
Refer this documentation and sample.
This issue has been resolved. Please feel free to reopen if you have any further queries.
We have just updated our angular application to angular 15 which adds stricter scss rules. This means that we can no longer import syncfusion styles into our application due to the following error and similar ones for other styles: