Skip to content

I wanna import sass in my react-app, I follow the user guide and found if I don't new a .scss file in project, npm start will cause wrong. #2380

Closed
@TomIsion

Description

@TomIsion

Description

I follow the user guide, wanna import sass in my project. After I change the npm scripts settings in package.json, I didn't new a .scss file in my project. Then npm start caused error.

> [email protected] build-css /Users/tom/Work/React/react-list
> node-sass-chokidar --include-path ./src --include-path ./node_modules src/ -o src/

No input file was found.

npm ERR! Darwin 16.6.0
npm ERR! argv "/usr/local/Cellar/node/7.5.0/bin/node" "/usr/local/bin/npm" "run" "build-css"
npm ERR! node v7.8.0
npm ERR! npm  v4.2.0
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build-css: `node-sass-chokidar --include-path ./src --include-path ./node_modules src/ -o src/`

But I new a .scss in src folder it works well. No errors anymore.

Expected behavior

I wanna even if I don't new a .scss file then npm start won't cause wrong.

Environment

As the wrong info shows.

Then, specify:

  1. Operating system:
  2. Browser and version:

Mac OSX

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions