I'm getting this error while importing the Socket into my React Component

I'm using "react": "^17.0.2", and "socket.io-client": "^4.3.1" versions.
I have only added this line and it comes up with this error
I have also tried without { } (curly brackets) but nothing changed. I searched google a lot but all having the same king of import and works well for them. Whats going wrong for my case ?
