M
M
mr_nu112020-03-14 18:43:52
npm
mr_nu11, 2020-03-14 18:43:52

npm start React how to set up rebuild of all project edits?

Hello. I am learning Node and React.

I start the project in development mode npm start, the web server is raised and the project is built. Then let's say I change something in /src/redux/actions/auth/signupActions.js or in /src/views/pages/authentication/register/RegisterJWT.js

But the project is not rebuilt until I change, for example, src/Router. js in this case, I see that the console reacted and rebuilt Router.js without affecting the files above. Every time I have to cut down the daemon on port 3000 from the processes and restart it, then a complete rebuild occurs.

Second question. If I make some mistake in some files, I see an error in the browser and in the console, but it is set as fatal and, having corrected the error, the project is not rebuilt and I have to cut down the daemon again and restart it for assembly.

Torment such as this can be adequately dealt with.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mr_nu11, 2020-03-15
@mr_nu11

I will clarify.
I run react-app-rewired start after that, if I change something in /src/*, the project is rebuilt in development mode. But in the /src/view/* directory, if I edit something, it does not rebuild. If it were something with webpack, then probably when react-app-rewired start was launched, the assembly would not occur, but when it starts, everything collects and starts well.
In which direction to dig. I can't find info.
Problem fixed! once again run "npm install" joke 2 days of torment out of the blue.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question