-
-
Notifications
You must be signed in to change notification settings - Fork 27k
[next branch] requiring css that imports another assets causes runtime error #3852
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
Comments
Thanks for the report! |
Resolved in 9754a23 |
Fixed in |
9754a23 only silent the error, we need to figure out the issue with right now svg assets imported from css would become |
Hi, I've same issue with regular cssbody {
background-image: url('./logo.svg');
...
} css module.bg-svg {
background-image: url('./logo.svg');
} Here is the reproducible code: https://github.com/jihchi/create-react-app-3852 |
We are aware of that issue, see #3856 |
Is this a bug report?
Yes
Can you also reproduce the problem with npm 4.x?
haven't tried it yet, but it works on the same env, same code, but v1 react-scripts
Which terms did you search for in User Guide?
N/A
Environment
Environment:
OS: macOS High Sierra 10.13.2
Node: 8.9.4
Yarn: 1.3.2
npm: 5.6.0
Watchman: Not Found
Packages: (wanted => installed)
react: ^16.2.0 => 16.2.0
react-dom: ^16.2.0 => 16.2.0
react-scripts: 2.0.0-next.096703ab => 2.0.0-next.096703ab
Browser: Chrome Version 63.0.3239.132 (Official Build) (64-bit)
Steps to Reproduce
yarn add react-slick
import 'slick-carousel/slick/slick-theme.css'
orrequire('slick-carousel/slick/slick-theme.css');
in index.cssExpected Behavior
No runtime error
Actual Behavior
A runtime error

Reproducible Demo
https://github.com/viankakrisna/create-react-app-example/blob/master/src/index.js
The text was updated successfully, but these errors were encountered: