You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -402,7 +402,7 @@ Then in `package.json`, add the following lines to `scripts`:
402
402
"test": "react-scripts test --env=jsdom",
403
403
```
404
404
405
-
>Note: To use a different preprocessor, replace `build-css` and `watch-css` commands according to your preprocessor’s documentation.
405
+
>Note: To use a different preprocessor, replace `build-css` and `watch-css` commands according to your preprocessor’s documentation.
406
406
407
407
Now you can rename `src/App.css` to `src/App.scss` and run `npm run watch-css`. The watcher will find every Sass file in `src` subdirectories, and create a corresponding CSS file next to it, in our case overwriting `src/App.css`. Since `src/App.js` still imports `src/App.css`, the styles become a part of your application. You can now edit `src/App.scss`, and `src/App.css` will be regenerated.
408
408
@@ -1355,10 +1355,10 @@ You can find instructions in [Deploying React with Zero Configuration](https://b
1355
1355
1356
1356
Sometimes `npm run build` works locally but fails during deploy via Heroku with an error like this:
1357
1357
1358
-
```
1358
+
```
1359
1359
remote: Failed to create a production build. Reason:
1360
1360
remote: Module not found: Error: Cannot resolve 'file' or 'directory'
1361
-
MyDirectory in /tmp/build_1234/src
1361
+
MyDirectory in /tmp/build_1234/src
1362
1362
```
1363
1363
1364
1364
This means you need to ensure that the lettercase of the file or directory you `import` matches the one you see on your filesystem or on GitHub.
0 commit comments