Javascript 找不到模块订阅传输ws或其相应的类型声明
我在一个使用typescript的React项目中,我试图使用Thread安装订阅传输ws,我安装正确,但后来我的应用程序崩溃了,因为它显示了一个类似于标题中的错误,通常我安装了库的类型版本,但在这种情况下,它似乎不存在订阅传输ws的版本,我做错了什么?我刚刚安装了软件包,我已经安装了不同的库,它们工作正常 这是我的tsconfig.jsonJavascript 找不到模块订阅传输ws或其相应的类型声明,javascript,reactjs,typescript,urql,Javascript,Reactjs,Typescript,Urql,我在一个使用typescript的React项目中,我试图使用Thread安装订阅传输ws,我安装正确,但后来我的应用程序崩溃了,因为它显示了一个类似于标题中的错误,通常我安装了库的类型版本,但在这种情况下,它似乎不存在订阅传输ws的版本,我做错了什么?我刚刚安装了软件包,我已经安装了不同的库,它们工作正常 这是我的tsconfig.json { "compilerOptions": { "target": "es5",
{
"compilerOptions": {
"target": "es5",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react"
},
"include": [
"src"
]
}