Check out this sample app that you can download to see the issue in action:
https://github.com/chrillewoodz/ng-boilerplate/tree/universal
I am currently working on implementing angular universal, but I'm encountering an error with a SCSS import in one of my component's SCSS files:
@import './src/assets/styles/utils/_exports';
The import works fine when running the project normally without universal. However, when running it with universal, the import path is treated as relative to the component rather than root.
As a result, the path becomes:
src/app/shared/components/breadcrumbs/src/assets/styles/utils
Instead of:
src/assets/styles/utils
How can I adjust the path so that it functions properly in both scenarios?
I've investigated this issue extensively but have not found similar cases. It seems like the main issues reported are related to SASS not working well with universal and AOT, which would be a separate problem once this one is resolved.