- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
首先,这是 here 的后续问题:
并且......其次,我只是在终端中收到这些错误。我对 Angular 并不陌生,但对 FireStore 和 Firebase 很陌生:)
我第一次使用 Firebase 创建帐户,我认为我正确复制了所有 api 内容,当我查看 VsCode 时,没有出现任何问题。但是,我想知道为什么本地主机中没有显示任何内容...所以我查看了我的终端、命令行,这些是显示的一些错误。
这是我采取的一些步骤:
但是我仍然遇到同样的错误!
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/
我更新了我的 angular cli 版本,现在它显示 angular : 5.2.0 我在 angular4 中构建了整个代码。你能帮我降级我的 angularcli 版本(特定版本)以便我有 an
我将 bootstrap 包含到我的 angularcli 项目中,但是当我尝试包含导航栏时,所有元素都无法正常工作。我正在使用网站上的标准 boostrap 导航栏示例,但它看起来很奇怪: 我的项目
我尝试使用 Elasticsearch NPM Module在我的 Angular2 应用程序中。 我使用以下方法在我的服务中导入它: import { Client, SearchResponse
我找不到关于是否使用可用的最新稳定版本升级 TypeScript 版本的任何官方建议。 创建新项目时,AngularCLI 在 package.json 中自动设置 npm 版本。目前是: "type
环境: Angular 2.0.0(通过带有 Webpack 的 Angular CLI Beta 15 构建) 问题: 无法关闭live-reload。我的应用程序涉及多个需要将文件上传到服务器和/
我使用带有 WebPack 的 Angular CLI 构建我的 Angular2 应用程序需要将一些文件复制到 dist 文件夹,以便我可以将应用程序部署到我们的生产 (IIS) 服务器。具体来说,
我想使用 Microsoft.AspNetCore.SpaServices.AngularCli 但得到这样的错误(“Microsoft.AspNetCore.SpaServices”命名空间中不存在
当我尝试创建新的 Angular Cli 项目时: 通过 IDE 执行 ng new angularcli --dir=. 命令几秒钟后收到此消息(在 Run 窗口中): "C:\Program Fi
我正在尝试为 angularcli 设置代理 header .这是我到目前为止在我的 proxy.config.json 中的内容文件: "/api": { "target": "https:
我有一个 Angular2 Angular-CLI 应用程序,它正在使用通过 NPM(node_modules 文件夹)安装的自定义库。我的 Angular2 应用程序可以在设计时定位自定义库组件。但
首先,这是 here 的后续问题: 并且......其次,我只是在终端中收到这些错误。我对 Angular 并不陌生,但对 FireStore 和 Firebase 很陌生:) 我第一次使用 Fire
首先,这是 here 的后续问题: 并且......其次,我只是在终端中收到这些错误。我对 Angular 并不陌生,但对 FireStore 和 Firebase 很陌生:) 我第一次使用 Fire
我决定将我的 Angular5 工作项目升级到 Angular6 并随之升级所有依赖项(例如 rxjs 现在是版本 6 以及 angular-cli) 我遇到了一个似乎无法解决的问题: ERROR i
我是一名优秀的程序员,十分优秀!