There is a small application on angular 6.0.7 / typescript 2.7.2. I connected the socket.io-client like this:
import * as io from 'socket.io-client'; everything worked. So I decided to make it nice and updated to angular 6.1.0 / typescript 2.9.2. The build faylitsya, the editor in the line with the library connection gives the following hint: Import of the namespace style cannot be called or created and will lead to a crash at runtime. Console on the line
private socket = io(); gives an error message: error TS2349: Cannot invoke an expression Type '{connect (uri: string, opts ?: ConnectOpts): Socket; connect (opts ?: ConnectOpts): Socket; protocol ... has no compatible call signatures. What do you advise to do?
tsconfig.jsonortsconfig.app.jsonpropertyesModuleInterop: true? - overthesanity