Closed mlucool closed 7 years ago
@darrachequesne
when I'm trying to import with
import io from 'socket.io-client'
TS is telling me that the module has no default export
@crebuh
Add types for typescript.
npm i @types/socket.io-client
@kdw3lch
nope it is not working I already had types in version 1.4.29 and upgraded the socket.io-client from 1.7.3 to 2.0.3, still the same problem.
maybe my tsconfig.json is wrong, any ideas?
@crebuh I should have read more carefully!
import * as io from 'socket.io-client'
I am seeing this issue with webpack ^2.0.0 and no socket.io in package. When I run karma I am getting this.
Not sure where to go from here ITO debugging.
adding socket.io-client to dependencies in my package.json fixed the problem for me
I had the similar, issue when i made checkout of existing project. I run npm -i, all dependency's were installed, but this error appears:
" Can't resolve 'engine.io-client' "
Was fixed by installing socket.io-client.
npm i socket.io-client
With 1.4.1 I am seeing the following issue from Webpack. My code has no issues with 1.4.0