-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can't import index.scss #133
Comments
@ablbol, You may need to add some custom |
I tried the require and import and got the following message
I know that if I require css file, it will work because i am requiring other css files. Right now, I am not working directly with webpack since create-react-app does so. |
You will need to add the sass-loader in your |
I realize this is an old question, but I ran into similar issue. I.e. add this line in the .js file: |
@larsts Try this |
@larsts solution works for me. none of the others did, despite having |
@diegoddox Where in the config file would I have to add the line |
Hi @paddotk, |
@diegoddox Thanks, but what I would like to know is where in this file to do so. I tried adding it directly in the That said, I did find a workaround by adding |
@paddotk Include that code in the same file where you have your |
Sorry, that doesn't work for me. Perhaps it's because of our application structure? Because it requires me to write it as |
Is your project using Webpack, if so do you have added the css loader? |
I created a new react project using create-react-app and installed react-redux-toastr following all instructions. The toastr works fine if I use but not when I try to import.
I tried this line (with and without the ~) in my index.scss
I tried this line from my index.js:
nothing seems to be working. Here is my package.json:
Could you please point me in the right direction.
Thanks for your help
The text was updated successfully, but these errors were encountered: