This tutorial is actually made for not ejecting if you run eject you cannot update create-react-app on that project to fix it I think you can follow this tutorial.
The scripts are looking for .scss files in /src/styles since you change the folder name to assets now is checking in /src/assets and what the script does is that if you don't add _ at the biginning of the name will treat it as a new file so from a Header.scss it will create a Header.css (the .css is the one file that you can use inside your component, because is a build css file).
IMO you should create a index.scss and then import every component style file (like _header.scss) after importing _custom boostrap and boostrap and then import in the App.js the index.css that the script will generate on every change of any .scss file in the /src/assets folder, but this is just a way to do it I understand that can be more clear to have it in every component folder.
If needed I can take a look if you have a public repo.
Hope it helps.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
This tutorial is actually made for not ejecting if you run
eject
you cannot updatecreate-react-app
on that project to fix it I think you can follow this tutorial.The scripts are looking for
.scss
files in/src/styles
since you change the folder name toassets
now is checking in/src/assets
and what the script does is that if you don't add_
at the biginning of the name will treat it as a new file so from aHeader.scss
it will create aHeader.css
(the.css
is the one file that you can use inside your component, because is a build css file).IMO you should create a
index.scss
and then import every component style file (like_header.scss
) after importing_custom boostrap
andboostrap
and then import in theApp.js
theindex.css
that the script will generate on every change of any.scss
file in the/src/assets
folder, but this is just a way to do it I understand that can be more clear to have it in every component folder.If needed I can take a look if you have a public repo.
Hope it helps.