Can't resolve node modules?

Having some issues here and not sure what is wrong. I have deleted my package-lock.json, node modules directory, then did nom i and no luck.

I’ve tried searching but the common fixes are with yarn?


When do you see this message?

Any time trying to render the app. I have tried installing material-ui core, etc. I can’t think of any other issues besides switching entirely over to yarn.

To add onto this, I have tried removing package-lock.json, node_modules, clearing the npm cache, verifying, npm i many times, and updating the npm version.

Final reply: solved! Learned a lesson to be careful using React in VS Code and renaming or moving directories / files. After doing so, it changed my imports at the top of my components by prepending ./node_modules/, and other funky things!