You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 18, 2018. It is now read-only.
I installed the library using yarn (yarn add sass-variable-loader, then I try to import a sass file, but when I run the app on webpack, I got the message "Cannot find module 'sass-variable-loader'".
I just installed the lib and try to use this import :
import colors from 'sass-variable-loader!style/colors.scss';
The aim is to get the sass variables as js variables into an object.
I followed the main instructions but seems not to be recognized.
Is there something to do in the webpack configuration or something ?
Thx
The text was updated successfully, but these errors were encountered:
Try putting two exclamation marks before the loader name like import colors from '!!sass-variable-loader!style/colors.scss';
It worked for me with npm, angular cli & angular 6, but it still shows a typescript error that cannot find module, which isn't true because it's working, so I ignored it like this
// @ts-ignore
import colors from '!!sass-variable-loader!style/colors.scss';
Hello,
I installed the library using yarn (
yarn add sass-variable-loader
, then I try to import a sass file, but when I run the app on webpack, I got the message "Cannot find module 'sass-variable-loader'".I just installed the lib and try to use this import :
import colors from 'sass-variable-loader!style/colors.scss';
The aim is to get the sass variables as js variables into an object.
I followed the main instructions but seems not to be recognized.
Is there something to do in the webpack configuration or something ?
Thx
The text was updated successfully, but these errors were encountered: