首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >不能用角连接Peerjs

不能用角连接Peerjs
EN

Stack Overflow用户
提问于 2022-05-01 10:14:11
回答 1查看 21关注 0票数 0

Tsconfig.json::

{ "compileOnSave":假,

"compilerOptions":{

代码语言:javascript
复制
"baseUrl": "./",

"outDir": "./dist/out-tsc",

"forceConsistentCasingInFileNames": true,
"strict": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"sourceMap": true,
"declaration": false,
"downlevelIteration": true,
"experimentalDecorators": true,
"moduleResolution": "node",
"importHelpers": true,
"target": "es2017",
"module": "es2020",
"lib": [
  "es2020",
  "dom"
]

},

"angularCompilerOptions":{

代码语言:javascript
复制
"enableI18nLegacyMessageIdFormat": false,
"strictInjectionParameters": true,
"strictInputAccessModifiers": true,
"strictTemplates": true

}}

角服务档案:

从‘peerjs’中导入Peer;。。

("peerjs__WEBPACK_IMPORTED_MODULE____default(...).Peer不是构造函数“)

导入{ Peer }具有相同的警告。

一年前,同样的代码没有出现这样的问题。

EN

回答 1

Stack Overflow用户

发布于 2022-05-06 14:45:40

我解决了问题。在package.json里。使用新的定期安装的PeerJS解决了问题。我只需添加到全局var ParcelRequire以传递一个新出现的问题。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72075801

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档