Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
145
Sass Error after upgrading vom v14 to v15
posted

The following error appears after updating a simple and lean application form v14 to v15 (angular and infragistics, node JS v18):

./src/styles.scss - Error: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: Can't find stylesheet to import.
  ╷
7 │ @use 'igniteui-theming/sass/color/functions' as color;
  │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ╵
  node_modules\@infragistics\igniteui-angular\lib\core\styles\themes\_core.scss 7:1  @forward
  @infragistics\igniteui-angular\_index.scss 1:1                                     @use
  src\styles.scss 7:1                                                                root stylesheet

./src/app/home/home.component.scss?ngResource - Error: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: Can't find stylesheet to import.
  ╷
7 │ @use 'igniteui-theming/sass/color/functions' as color;
  │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ╵
  node_modules\@infragistics\igniteui-angular\lib\core\styles\themes\_core.scss 7:1  @forward
  @infragistics\igniteui-angular\_index.scss 1:1                                     @use
  src\app\home\home.component.scss 1:1                                               root stylesheet

./src/styles.scss?ngGlobalStyle - Error: Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
HookWebpackError: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: Can't find stylesheet to import.
  ╷
7 │ @use 'igniteui-theming/sass/color/functions' as color;
  │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ╵
  node_modules\@infragistics\igniteui-angular\lib\core\styles\themes\_core.scss 7:1  @forward
  @infragistics\igniteui-angular\_index.scss 1:1                                     @use
  src\styles.scss 7:1                                                                root stylesheet

Similar Errors always appear when creating a new app from the scratch with ig new in v15 (tried on different (from the scratch) intalled environments)

Everything works fine in v14.

Has someone a helpful hint for me?

Thanks in advance!