- Home
- Forum
- Angular - EJ 2
- scss unable to find stylesheet.
scss unable to find stylesheet.
I created the sample app from the youtube video for the dropdownlist and using css it compiles cleanly.
When I tried creating a dropdownlist with scss I get an error that it can't find the stylesheet. The error occurs when it tries to execute the @import statement in the scss subfolder.
Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: Can't find stylesheet to import.
╷
1 │ @import 'ej2-icons/styles/material.scss';
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
node_modules/@syncfusion/ej2-base/styles/material.scss 1:9 @import
src/styles.scss 2:9 root stylesheet
This is the styles.scss file
This is the content of the node_modules>@syncfusion>ej2-base>styles.material.scss file
The error occurs when trying to resolve the first line
@import 'ej2-icons/styles/material.scss';
| "stylePreprocessorOptions": {
"includePaths": [
"node_modules/@syncfusion"
] }, |
| @import 'ej2-base/styles/material.scss';
@import 'ej2-buttons/styles/material.scss';
@import 'ej2-dropdowns/styles/material.scss';
@import 'ej2-inputs/styles/material.scss';
@import 'ej2-popups/styles/material.scss';
@import 'ej2-lists/styles/material.scss'; @import 'ej2-angular-dropdowns/styles/material.scss'; |
https://ej2.syncfusion.com/angular/documentation/getting-started/angular-cli/#adding-scss-reference
Regards,
- 1 Reply
- 2 Participants
-
JA James
- Feb 19, 2022 03:47 AM UTC
- Feb 21, 2022 01:36 PM UTC