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'; |