【问题标题】:angular firestore has no exported member DATABASE_URLangular firestore 没有导出的成员 DATABASE_URL
【发布时间】:2023-03-03 23:38:01
【问题描述】:

您好,我正在升级我的 Angular 应用程序,我面临以下问题 当我使用 Angular Fire 6.0.1 版时,我收到与 DATABASE_URL 相关的错误

ERROR in src/app/app.module.ts:16:3 - error TS2305: Module '"D:/projects/ac node/firestore-phone-app/node_modules/@angular/fire/firestore/angular-fire-firestore"' has no exported member 'DATABASE_URL'.

16   DATABASE_URL

package.json

 "dependencies": {
    "@angular/animations": "^9.0.0",
    "@angular/cdk": "^9.0.0",
    "@angular/common": "^9.0.0",
    "@angular/compiler": "^9.0.0",
    "@angular/core": "^9.0.0",
    "@angular/fire": "^6.0.1",
    "@angular/forms": "^9.0.0",
    "@angular/material": "^7.3.2",
    "@angular/platform-browser": "^9.0.0",
    "@angular/platform-browser-dynamic": "^9.0.0",
    "@angular/platform-server": "^9.0.0",
    "@angular/router": "^9.0.0",
    "bootstrap": "^4.3.1",
    "core-js": "^3.6.5",
    "firebase": "7.13.2",
    "font-awesome": "^4.7.0",
    "hammerjs": "^2.0.8",
    "ngx-bootstrap": "^5.6.1",
    "rxjs": "^6.5.5",
    "tslib": "^1.9.0",
    "zone.js": "^0.10.3"
  },

当我使用 @angular/fire: 6.0.2 时出现错误

ERROR in getInternalNameOfClass() called on a non-ES5 class: expected AngularFireModule to have an inner class declaration

【问题讨论】:

    标签: angular angularfire


    【解决方案1】:

    packages.json文件中,放这个版本:

    "@angular/fire": "6.0.0",
    

    【讨论】:

    • 谢谢,但仍然报错 DATABASE_URL is not export member
    猜你喜欢
    • 2020-07-26
    • 2021-11-18
    • 2017-07-07
    • 2018-09-25
    • 2018-05-22
    • 2017-03-30
    • 1970-01-01
    • 2018-10-16
    • 1970-01-01
    相关资源
    最近更新 更多