Home > Mobile >  npm run build does not pick up changes
npm run build does not pick up changes

Time:10-13

I am building a react app and all worked fine until yesterday. I need to build the app in a production ready state, so i always run npm run build, but somehow when I change something in my page, the changes don't get picked up. If i do npm start, I can see the changes, but the files in the build folder don't contain the changes. Does anyone know a fix? Greets and thanks in advance

CodePudding user response:

You have to remove the node_modules and package_lock.json files. then run again npm run build.

CodePudding user response:

Try "Yarn". Sometime it helps.

"yarn run build"

  • Related