编译器完成后出现此错误。我尝试卸载并重新安装 firebase @angular/fire 但无法修复。我对错误感到困惑。我找不到它的解决方案
"@angular/cli": "~10.2.0",
"firebase": "^8.0.0",
"@angular/fire": "^6.0.3",
Run Code Online (Sandbox Code Playgroud)
"@angular/cli": "~10.2.0",
"firebase": "^8.0.0",
"@angular/fire": "^6.0.3",
Run Code Online (Sandbox Code Playgroud)
我希望我得到好的回应。
这是我在更新 npm 后得到的错误,由于出现 [WDS] Disconnected 错误!Mozilla Firefox 控制台中的错误。这是有经验的开发人员要解决的错误。
5 import firebase from 'firebase/app';
~~~~~~~~
node_modules/firebase/index.d.ts:9710:1
9710 export = firebase;
~~~~~~~~~~~~~~~~~~
This module is declared with using 'export =', and can only be used with a default import when using the
'allowSyntheticDefaultImports' flag.
node_modules/@angular/fire/firestore/collection-group/collection-group.d.ts:2:8 - error TS1259: Module '"D:/apps/angularfs3/node_modules/firebase/index"' can only be default-imported using the 'allowSyntheticDefaultImports' flag
2 import firebase from 'firebase/app';
~~~~~~~~
node_modules/firebase/index.d.ts:9710:1
9710 export = firebase;
~~~~~~~~~~~~~~~~~~
This module is declared with using 'export =', and can only be …Run Code Online (Sandbox Code Playgroud) 我在、、等componentsProps组件的 API 文档中看到了这一点......,我没有得到任何最好的例子和 prop 的完美定义。AutoCompleteStepLabelBackDrop
请任何人用简单的语言用基本和简单的例子解释它何时、为什么以及如何使用!