Socket.io-client not loaded properly
下面尝试,它的工作 NPM安装@类型/ socket.io客户端--save 定义socket.io -client在工具/配置/ seed.config.ts
i.e in SYSTEM_CONFIG_DEV->
path: {
...,
'socket.io-client' : `node_modules/socket.io-client/dist/socket.io`,// for latest versions of socket.io
'socket.io-client' : `node_modules/socket.io-client/socket.io`,// for older versions of socket.io
...
}
在SYSTEM_BUILDER_CONFIG增加对生产间ode
path: {
...,
'socket.io-client' : `node_modules/socket.io-client/dist/socket.io`,// for latest versions of socket.io
'socket.io-client' : `node_modules/socket.io-client/socket.io`,// for older versions of socket.io
...
}
我想你忘了问这个问题。 – Jai
角2种子中的socket.io错误。 其实我的代码在角2种子应用程序。 当使用该代码时,我收到了一个错误。 –
这个问题? – Jai