Did you check in the code? Because then you can revert to the commit prior to the one you made the changes to.
If I discard changes in my source control will that fix it
If you discard to before you started and then clean the node_modules folder and then run npm install and then run your project you should be fine.
Thank you I will try it And see if this works
how do i clean node modules
just delete the node_modules folder.
I already ran npm install should I still go on and delete the folder
In order to clean node_modules you need to execute 2 steps: 1) rm -rf node_modules/ 2) npm i
Step 1) removes node_modules folder with all its content from the app Step 2) re-installs all packages specified in package.json file
Now your app will have a clean node_modules folder with just the needed packages installed.
Thank you It worked
Glad it worked
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
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.
Did you check in the code? Because then you can revert to the commit prior to the one you made the changes to.
If I discard changes in my source control will that fix it
If you discard to before you started and then clean the node_modules folder and then run npm install and then run your project you should be fine.
Thank you I will try it
And see if this works
how do i clean node modules
just delete the node_modules folder.
I already ran npm install should I still go on and delete the folder
In order to clean node_modules you need to execute 2 steps:
1) rm -rf node_modules/
2) npm i
Step 1) removes node_modules folder with all its content from the app
Step 2) re-installs all packages specified in package.json file
Now your app will have a clean node_modules folder with just the needed packages installed.
Thank you It worked
Glad it worked