-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Cannot import external CSS files after upgrading to react-scripts 1.0.8 #2677
Comments
Try to import into js, it solved my problem. Also check if that react-scripts in dependencies not devDependecies. |
Same issue here. Works with the previous version of react scripts. |
@talgat-ruby Importing into js might be a workaround, but it isn’t really a fix, especially when this was working in the previous version. I don’t think it matters if react-scripts is in |
This might be related to update of |
What is the easiest way to do this inside of the test project I created above (in "Steps to Reproduce")? |
I would look at package.json of react-scripts@1.0.7 on http://unpkg.com/react-scripts@1.0.7/package.json, note PostCSS loader version, and then temporarily install it locally with npm: |
Error went away when I created file |
Looks like postcss-loader went from 2.0.5 to 2.0.6 So, I did
and got
So I guess that didn’t fix it. |
Hmm I'm struggling to see why this is happening. To debug I would probably look at where the message is thrown and try to figure out why it didn't get thrown before. |
Random guess. Can you try reverting change from #2430 locally? I think this might have been it. |
Ya, reverting #2430 that works 👍 . |
Confirming that reverting #2430 fixes problem. |
Should be fixed in 1.0.9. |
Confirming it's fixed in v1.0.9, thanks! |
Is this a bug report?
Yes
Can you also reproduce the problem with npm 4.x?
Yes
Which terms did you search for in User Guide?
postcss
Environment
node -v
:v8.1.2
npm -v
:4.6.1
yarn --version
(if you use Yarn):0.24.6
npm ls react-scripts
(if you haven’t ejected):Then, specify:
Operating system: OS X Sierra
Browser and version (if relevant): Not Relevant
Steps to Reproduce
Expected Behavior
yarn start
should complete and launch a page in browser.Actual Behavior
Reproducible Demo
Problem occured here: deepakjois/deepakjois.com@f02c486
I was able to make it go away after downgrading
react-scripts
to 1.0.7. So far I am able to reproduce this reliably in three independent projects, including the one I created using steps above under “Steps to Reproduce”The text was updated successfully, but these errors were encountered: