Skip to content

Cannot import external CSS files after upgrading to react-scripts 1.0.8 #2677

Closed
@deepakjois

Description

@deepakjois

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

  1. node -v:

v8.1.2

  1. npm -v:

4.6.1

  1. yarn --version (if you use Yarn):

0.24.6

  1. npm ls react-scripts (if you haven’t ejected):
[email protected] /Users/deepak/code/personal/postcssbug
└── [email protected]

Then, specify:

  1. Operating system: OS X Sierra

  2. Browser and version (if relevant): Not Relevant

Steps to Reproduce

create-react-app postcssbug

cd postcssbug

yarn add normalize.css

echo "@import '~normalize.css/normalize.css';" >> src/index.css

yarn start

Expected Behavior

yarn start should complete and launch a page in browser.

Actual Behavior

screenshot 2017-06-29 12 18 36

./~/normalize.css/normalize.css
Module build failed: Error: No PostCSS Config found in: /Users/deepak/code/personal/postcssbug/node_modules/normalize.css
    at <anonymous>

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”

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions