I am using sass: 1.4.x
and with create-react-app 4..
all i am doing it import a css file in a custom class and my file is not getting imported..
.umaiShopDashBoardParent {
@import '~react-dates/lib/css/_datepicker.css';
}
as attached in the screenshot i am getting 'unknown property name'
...
However if i am using node-sass@latest
and using the above class it worked fine..
is there something new in dart-sass that i am missing.. as i am not able to load this file unless i move it outside of the classname .umaiShopDashBoardParent
and put in root
Moreover, i try to use @use
to use a css file
i get the following error:
resolve-url-loader??ref--5-oneOf-6-3!./node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-6-4!./src/styles/main.scss)
SassError: Cant find stylesheet to import.
╷
1 │ @use '~react-dates/lib/css/_datepicker.css';
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
src/styles/vendor/_all.scss 1:1 @import
src/styles/main.scss 2:11 root stylesheet