Cannot find module 'ws'

I’ve been getting this error since about 10 minutes ago.
The error says “Cannot find module ‘ws’”. This error didn’t appear until today. I tried installing the said module but it did nothing. My project’s name is rocket-science. Any help would be appreciated!

Hi Freddie!

Could you try opening the console from the Tools menu and running enable-pnpm?

Johnicholas

Hello! I tried this and it solved my issue! Though other module-related issues came up, i easily fixed those from package.json. Thank you!