Skip to content

[next branch] requiring css that imports another assets causes runtime error #3852

Closed
@viankakrisna

Description

@viankakrisna

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

  1. create new app
  2. yarn add react-slick
  3. import 'slick-carousel/slick/slick-theme.css' or require('slick-carousel/slick/slick-theme.css'); in index.css

Expected Behavior

No runtime error

Actual Behavior

A runtime error
screen shot 2018-01-18 at 11 00 58

Reproducible Demo

https://github.com/viankakrisna/create-react-app-example/blob/master/src/index.js

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions