问题描述
我正在使用打字稿的React项目中,并尝试使用yarn安装 subscriptions-transport-ws ,我安装正确,但是我的应用程序崩溃了,因为它显示的错误类似于标题中的错误,通常,我安装了库的类型版本,但是在这种情况下,似乎确实存在一个subscriptions-transport-ws版本,我在做什么错呢?我刚刚安装了软件包,已经安装了其他库,它们运行正常
这是我的tsconfig.json
{
"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"
]
}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)