I am seeing a weird behaviour with package-lock.json
. Once I remove node_modules and package-lock.json
and then build them, my application works as expected. When I do a npm install
again with just built package-lock.json
existing, the file entirely changes removing lot of packages from the tree. When I run the server now, certain Modal
(from react-bootstrap
) components don't work properly. I don't understand why this file should change and end up installing different version of dependencies which is breaking the code. Am I doing something wrong with regards to package-lock.json
?
Every time I remove both node_modules and this file and build I don't face any issue. Only when this file is already present and I do npm install
I run into issues.