小编Chr*_*hli的帖子

将 angularfire2 升级到 @angular/fire 后出错

我开始绝望了,我有我的小 Angular 6 应用程序。我已经从(我认为是)angularfire2 v3 升级到 @angular/fire

我根据从 v4 到 v5 的升级(使用并包括相应的 AngularFire 库)进行了所有更改,并删除了所有 AngularFireObservables/Objects

我仍然有一个编译错误:

...

ERROR in Cannot read property 'getSymbolByModule' of undefined

ERROR in D:/Code/workouttracker/src/app/app.routes.ts (70,22): Generic type 'Mod
uleWithProviders<T, any>' requires 2 type argument(s).

ERROR in D:/Code/workouttracker/src/app/service/user.service.ts (27,24): 'fireba
se' refers to a UMD global, but the current file is a module. Consider adding an
 import instead.
D:/Code/workouttracker/src/app/service/user.service.ts (28,27): 'firebase' refer
s to a UMD global, but the current file is a module. Consider adding an …
Run Code Online (Sandbox Code Playgroud)

firebase angularfire angular

5
推荐指数
0
解决办法
531
查看次数

错误:程序类型已经存在:org.intellij.lang.annotations.JdkConstants$PatternFlags 3

我仍然坚持这个错误。我删除了 build 文件夹、.gradle文件夹和gradle文件夹。构建时仍然出现相同的错误。我没有什么可以尝试的想法了。这是我当前的build.gradle(应用程序级别)

apply plugin: 'com.android.application'

configurations {
    cleanedAnnotations
    compile.exclude group: 'org.jetbrains' , module:'annotations'
}

android {
    lintOptions {
        checkReleaseBuilds false
        // Or, if you prefer, you can continue to check for errors in release builds,
        // but continue the build even when errors are found:
        abortOnError false
    }

    compileSdkVersion 28
    buildToolsVersion '28.0.3'
    defaultConfig {
        applicationId 'ch.workouttracker'
        minSdkVersion 24
        targetSdkVersion 28
        multiDexEnabled true
        versionCode 1
        versionName "0.5"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        resConfigs "de" // And any other …
Run Code Online (Sandbox Code Playgroud)

android gradle android-studio

3
推荐指数
1
解决办法
2114
查看次数