npm run build
does not seem to pick up latest changes while npm start
shows the changes. I am trying a few code changes in a few .ts files including change of a URL which should be immediately reflected. Upon running npm start I see the updated URL but npm run build seems to pick up some old code version still. Can someone please help or point to the problem?
I have tried going through the stackoverflow posts on the same subject and tried removing node_modules and package-lock.json but no luck. Is there any other thing I can do it to force npm build to pick up the changes? The only way I can be sure that npm build is picking it up is if the URL change is reflected clearly.