嗨我在Angular 2中处理Socket.io时遇到错误我已经在Typings.json,System.comfig.js和Package.json文件中导入了所有内容,并使用以下语句在.ts文件中使用它
void set_ui_const(uint64_t* y,const uint64_t* x, int ny, int nx)
{
assert(nx >= 1 && ny >= 1);
int Nx, Ny, Nmin, j, n2y;
Nx = (nx + 63) / 64;
Ny = (ny + 63) / 64;
n2y = (ny - (Ny-1)*64);
Nmin = (Nx <= Ny) ? Nx : Ny;
for (j = 0; j <= Nmin - 1; j++)
y[j] = x[j];
for (j = Nmin; j <= Ny - 1; j++)
y[j] = 0ULL;
if (n2y != 64) {
y[Ny - 1] &= (1ULL << n2y) - 1ULL;
}
}
一切都很好直到现在当我加载项目时我可以看到下面的错误
(index):18错误:(SystemJS)XHR错误(404 Not Found)加载 http://localhost:1000/socket.io-client
请帮帮我
答案 0 :(得分:0)
使用npm install @types/socket.io-client --save