I’m trying to study Cocos Creator 3.0 and Socket.io but I’m having a hard time to make it work.
I’m trying to make a server with Node+Express+SocketIO, and configure the client with CocosCreator3.0.
I installed socket.io-client npm module in the CC project but this kind of erros keep showing up:
But the files are there on the folders:
It seems to be a dependency problem?
But it didn’t help much as the
import syntax seems to be fine.
I identified that the
socket.io-client package is
"type": "commonjs", but I’m not sure what else should I do to make it work besides changing the way to import it on my Cocos Typescript component.
Thank you in advance for your attention.