You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using Node and express along with svelte on the frontend, I have npm installed the "socket.io-client" package on the client side, but when I try to import it, I get this error. I see this error only when importing "socket.io-client", I tried importing axios and it was working fine. How to solve this issue?
I have tried everything, including clearing the cache, uninstalling
node modules and reinstalling them. I tried using "require" as well, but It did not work.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am using Node and express along with svelte on the frontend, I have npm installed the "socket.io-client" package on the client side, but when I try to import it, I get this error. I see this error only when importing "socket.io-client", I tried importing axios and it was working fine. How to solve this issue?
I have tried everything, including clearing the cache, uninstalling
node modules and reinstalling them. I tried using "require" as well, but It did not work.
Beta Was this translation helpful? Give feedback.
All reactions