gpt4 book ai didi

node.js - 当 VsCode 中没有检测到 "problems"时,这些 AngularCli 错误意味着什么?

转载 作者:行者123 更新时间:2023-12-02 18:38:05 27 4
gpt4 key购买 nike

首先,这是 here 的后续问题:

并且......其次,我只是在终端中收到这些错误。我对 Angular 并不陌生,但对 FireStore 和 Firebase 很陌生:)

我第一次使用 Firebase 创建帐户,我认为我正确复制了所有 api 内容,当我查看 VsCode 时,没有出现任何问题。但是,我想知道为什么本地主机中没有显示任何内容...所以我查看了我的终端、命令行,这些是显示的一些错误。

这是我采取的一些步骤:

  • 已删除的 Node 模块
  • npm 缓存清理 --force
  • npm 安装

但是我仍然遇到同样的错误!


Build at: 2021-07-19T15:14:31.757Z - Hash: 1d1a58a540ce70023842 - Time: 20427ms

Warning: D:\WEBSITES\Projects\clientpanel\node_modules\angularfire2\node_modules\@angular\fire\__ivy_ngcc__\es2015\firebase.app.module.js depends on 'firebase/app'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

Warning: D:\WEBSITES\Projects\clientpanel\node_modules\firebase\firestore\dist\index.esm.js depends on '@firebase/firestore'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

Warning: D:\WEBSITES\Projects\clientpanel\src\app\app.module.ts depends on 'angularfire2'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

Warning: D:\WEBSITES\Projects\clientpanel\src\app\app.module.ts depends on 'angularfire2/auth'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

Warning: D:\WEBSITES\Projects\clientpanel\src\app\app.module.ts depends on 'angularfire2/firestore'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies



Error: node_modules/angularfire2/node_modules/@angular/core/core.d.ts:219:25 - error TS2694: Namespace '"D:/WEBSITES/Projects/clientpanel/node_modules/angularfire2/node_modules/@angular/core/src/r3_symbols"' has no exported member 'ɵɵFactoryDeclaration'.

219 static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<ApplicationInitStatus, [{ optional: true; }]>;
~~~~~~~~~~~~~~~~~~~~


Error: node_modules/angularfire2/node_modules/@angular/core/core.d.ts:220:26 - error TS2694: Namespace '"D:/WEBSITES/Projects/clientpanel/node_modules/angularfire2/node_modules/@angular/core/src/r3_symbols"' has no exported member 'ɵɵInjectableDeclaration'.

220 static ɵprov: ɵngcc0.ɵɵInjectableDeclaration<ApplicationInitStatus>;
~~~~~~~~~~~~~~~~~~~~~~~



Error: node_modules/angularfire2/node_modules/@angular/core/core.d.ts:750:26 - error TS2694: Namespace '"D:/WEBSITES/Projects/clientpanel/node_modules/angularfire2/node_modules/@angular/core/src/r3_symbols"' has no exported member 'ɵɵInjectableDeclaration'.

750 static ɵprov: ɵngcc0.ɵɵInjectableDeclaration<Compiler>;
~~~~~~~~~~~~~~~~~~~~~~~


Error: node_modules/angularfire2/node_modules/@angular/core/core.d.ts:5066:25 - error TS2694: Namespace '"D:/WEBSITES/Projects/clientpanel/node_modules/angularfire2/node_modules/@angular/core/src/r3_symbols"' has no exported member 'ɵɵFactoryDeclaration'.

5066 static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<PlatformRef, never>;
~~~~~~~~~~~~~~~~~~~~

Error: node_modules/angularfire2/node_modules/@angular/core/core.d.ts:5067:26 - error TS2694: Namespace '"D:/WEBSITES/Projects/clientpanel/node_modules/angularfire2/node_modules/@angular/core/src/r3_symbols"' has no exported member 'ɵɵInjectableDeclaration'.

5067 static ɵprov: ɵngcc0.ɵɵInjectableDeclaration<PlatformRef>;
~~~~~~~~~~~~~~~~~~~~~~~


Error: node_modules/angularfire2/node_modules/@angular/core/core.d.ts:6454:25 - error TS2694: Namespace '"D:/WEBSITES/Projects/clientpanel/node_modules/angularfire2/node_modules/@angular/core/src/r3_symbols"' has no exported member 'ɵɵFactoryDeclaration'.

6454 static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<SystemJsNgModuleLoader, [null, { optional: true; }]>;
~~~~~~~~~~~~~~~~~~~~


Error: node_modules/angularfire2/node_modules/@angular/core/core.d.ts:6455:26 - error TS2694: Namespace '"D:/WEBSITES/Projects/clientpanel/node_modules/angularfire2/node_modules/@angular/core/src/r3_symbols"' has no exported member 'ɵɵInjectableDeclaration'.

6455 static ɵprov: ɵngcc0.ɵɵInjectableDeclaration<SystemJsNgModuleLoader>;
~~~~~~~~~~~~~~~~~~~~~~~


Error: node_modules/angularfire2/node_modules/@angular/core/core.d.ts:6651:25 - error TS2694: Namespace '"D:/WEBSITES/Projects/clientpanel/node_modules/angularfire2/node_modules/@angular/core/src/r3_symbols"' has no exported member 'ɵɵFactoryDeclaration'.

6651 static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<Testability, never>;
~~~~~~~~~~~~~~~~~~~~


Error: node_modules/angularfire2/node_modules/@angular/core/core.d.ts:6652:26 - error TS2694: Namespace '"D:/WEBSITES/Projects/clientpanel/node_modules/angularfire2/node_modules/@angular/core/src/r3_symbols"' has no exported member 'ɵɵInjectableDeclaration'.

6652 static ɵprov: ɵngcc0.ɵɵInjectableDeclaration<Testability>;
~~~~~~~~~~~~~~~~~~~~~~~


Error: node_modules/angularfire2/node_modules/@angular/core/core.d.ts:6696:25 - error TS2694: Namespace '"D:/WEBSITES/Projects/clientpanel/node_modules/angularfire2/node_modules/@angular/core/src/r3_symbols"' has no exported member 'ɵɵFactoryDeclaration'.

6696 static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<TestabilityRegistry, never>;
~~~~~~~~~~~~~~~~~~~~


Error: node_modules/angularfire2/node_modules/@angular/core/core.d.ts:9639:25 - error TS2694: Namespace '"D:/WEBSITES/Projects/clientpanel/node_modules/angularfire2/node_modules/@angular/core/src/r3_symbols"' has no exported member 'ɵɵFactoryDeclaration'.

9639 static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<ɵConsole, never>;
~~~~~~~~~~~~~~~~~~~~


Error: node_modules/angularfire2/node_modules/@angular/core/core.d.ts:9640:26 - error TS2694: Namespace '"D:/WEBSITES/Projects/clientpanel/node_modules/angularfire2/node_modules/@angular/core/src/r3_symbols"' has no exported member 'ɵɵInjectableDeclaration'.

9640 static ɵprov: ɵngcc0.ɵɵInjectableDeclaration<ɵConsole>;
~~~~~~~~~~~~~~~~~~~~~~~


Error: node_modules/angularfire2/node_modules/@angular/fire/auth/auth.d.ts:13:25 - error TS2694: Namespace '"D:/WEBSITES/Projects/clientpanel/node_modules/angularfire2/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDeclaration'.

13 static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<AngularFireAuth, [null, { optional: true; }, null, null]>;
~~~~~~~~~~~~~~~~~~~~


Error: node_modules/angularfire2/node_modules/@angular/fire/auth/auth.d.ts:14:26 - error TS2694: Namespace '"D:/WEBSITES/Projects/clientpanel/node_modules/angularfire2/node_modules/@angular/core/core"' has no exported member 'ɵɵInjectableDeclaration'.

14 static ɵprov: ɵngcc0.ɵɵInjectableDeclaration<AngularFireAuth>;
m ~~~~~~~~~~~~~~~~~~~~~~~


Error: node_modules/angularfire2/node_modules/@angular/fire/auth/auth.module.d.ts:4:25 - error TS2694: Namespace '"D:/WEBSITES/Projects/clientpanel/node_modules/angularfire2/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDeclaration'.

4 static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<AngularFireAuthModule, never>;
~~~~~~~~~~~~~~~~~~~~


Error: node_modules/angularfire2/node_modules/@angular/fire/auth/auth.module.d.ts:5:25 - error TS2694: Namespace '"D:/WEBSITES/Projects/clientpanel/node_modules/angularfire2/node_modules/@angular/core/core"' has no exported member 'ɵɵNgModuleDeclaration'.

5 static ɵmod: ɵngcc0.ɵɵNgModuleDeclaration<AngularFireAuthModule, never, never, never>;
~~~~~~~~~~~~~~~~~~~~~


Error: node_modules/angularfire2/node_modules/@angular/fire/auth/auth.module.d.ts:6:25 - error TS2694: Namespace '"D:/WEBSITES/Projects/clientpanel/node_modules/angularfire2/node_modules/@angular/core/core"' has no exported member 'ɵɵInjectorDeclaration'.

6 static ɵinj: ɵngcc0.ɵɵInjectorDeclaration<AngularFireAuthModule>;
~~~~~~~~~~~~~~~~~~~~~


Error: node_modules/angularfire2/node_modules/@angular/fire/firebase.app.module.d.ts:48:25 - error TS2694: Namespace '"D:/WEBSITES/Projects/clientpanel/node_modules/angularfire2/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDeclaration'.

48 static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<AngularFireModule, never>;
~~~~~~~~~~~~~~~~~~~~


Error: [0mnode_modules/angularfire2/node_modules/@angular/fire/firebase.app.module.d.ts:49:25 - error TS2694: Namespace '"D:/WEBSITES/Projects/clientpanel/node_modules/angularfire2/node_modules/@angular/core/core"' has no exported member 'ɵɵNgModuleDeclaration'.

49 static ɵmod: ɵngcc0.ɵɵNgModuleDeclaration<AngularFireModule, never, never, never>;
~~~~~~~~~~~~~~~~~~~~~


Error: node_modules/angularfire2/node_modules/@angular/fire/firebase.app.module.d.ts:50:25 - error TS2694: Namespace '"D:/WEBSITES/Projects/clientpanel/node_modules/angularfire2/node_modules/@angular/core/core"' has no exported member 'ɵɵInjectorDeclaration'.

50 static ɵinj: ɵngcc0.ɵɵInjectorDeclaration<AngularFireModule>;
~~~~~~~~~~~~~~~~~~~~~


Error: node_modules/angularfire2/node_modules/@angular/fire/firestore/firestore.d.ts:30:25 - error TS2694: Namespace '"D:/WEBSITES/Projects/clientpanel/node_modules/angularfire2/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDeclaration'.

30 static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<AngularFirestore, [null, { optional: true; }, { optional: true; }, { optional: true; }, null, null, { optional: true; }]>;
~~~~~~~~~~~~~~~~~~~~


Error: node_modules/angularfire2/node_modules/@angular/fire/firestore/firestore.d.ts:31:26 - error TS2694: Namespace '"D:/WEBSITES/Projects/clientpanel/node_modules/angularfire2/node_modules/@angular/core/core"' has no exported member 'ɵɵInjectableDeclaration'.

31 static ɵprov: ɵngcc0.ɵɵInjectableDeclaration<AngularFirestore>;
~~~~~~~~~~~~~~~~~~~~~~~


0mError: node_modules/angularfire2/node_modules/@angular/fire/firestore/firestore.module.d.ts:7:25 - error TS2694: Namespace '"D:/WEBSITES/Projects/clientpanel/node_modules/angularfire2/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDeclaration'.

7 static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<AngularFirestoreModule, never>;
~~~~~~~~~~~~~~~~~~~~


Error: node_modules/angularfire2/node_modules/@angular/fire/firestore/firestore.module.d.ts:8:25 - error TS2694: Namespace '"D:/WEBSITES/Projects/clientpanel/node_modules/angularfire2/node_modules/@angular/core/core"' has no exported member 'ɵɵNgModuleDeclaration'.

8 static ɵmod: ɵngcc0.ɵɵNgModuleDeclaration<AngularFirestoreModule, never, never, never>;
~~~~~~~~~~~~~~~~~~~~~


Error: node_modules/angularfire2/node_modules/@angular/fire/firestore/firestore.module.d.ts:9:25 - error TS2694: Namespace '"D:/WEBSITES/Projects/clientpanel/node_modules/angularfire2/node_modules/@angular/core/core"' has no exported member 'ɵɵInjectorDeclaration'.

9 static ɵinj: ɵngcc0.ɵɵInjectorDeclaration<AngularFirestoreModule>;
~~~~~~~~~~~~~~~~~~~~~

最佳答案

您安装了一个不再使用的 Angular 库 - Angularfire2 现在只是 @Angular/fire

从终端窗口或命令窗口尝试此操作

npm uninstall angularfire2
npm uninstall @angular/fire
npm uninstall firebase

在导入 Angular Fire 的模块中,请确保删除对它的任何引用。然后输入

ng add @angular/fire 
npm install
npm install firebase

关于node.js - 当 VsCode 中没有检测到 "problems"时,这些 AngularCli 错误意味着什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68443084/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com