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
![issue](https://private-user-images.githubusercontent.com/64635215/353320058-256ef398-0971-44c8-bd4a-6039bbe25103.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYxMDQ5NDYsIm5iZiI6MTcyNjEwNDY0NiwicGF0aCI6Ii82NDYzNTIxNS8zNTMzMjAwNTgtMjU2ZWYzOTgtMDk3MS00NGM4LWJkNGEtNjAzOWJiZTI1MTAzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTEyVDAxMzA0NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTA3OTBkYzc2NGFiMTU5ZmM5MTQ3YmIxMjA0YWNhYjhkNjcyOThjMGRmODM4NmJjYzJjYTQzNGY1ZjQ1OWMyYjUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.gdhtil6ZQxXo8a-siqECnWYUr6I7ghsSkze0jFriVFM)
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