Firebase 5.7.0。出现错误TS2307:找不到模块'@ firebase / app-types / private'

时间:2018-12-19 05:02:53

标签: angular firebase angularfire

我刚刚升级到Angular-cli 7.1.3,angular / fire 5.1.1和firebase 5.7.0 我收到此错误:

def partitionFunc(key):
    import random
    if key == 1 or key == 3:
        return 0
    else:
        return random.randint(1,2)

newrdd = keypair_rdd.partitionBy(5,lambda k: partitionFunc(int(k[0])))

>>> print("Partitions structure: {}".format(newrdd.glom().map(len).collect()))
Partitions structure: [3, 3, 0, 0, 0]

../ node_modules/@firebase/database/dist/esm/src/core/AuthTokenProvider.d.ts(17,39):错误TS2307:找不到模块'@ firebase / app-types / private'。< / p>

我阅读了一些将Firebase降级到4.8.0的文章,但这更糟。我得到同样的错误和许多其他错误。我已升级回5.7.0,但仍然出现相同的错误。

请给我一些帮助。

谢谢

0 个答案:

没有答案
相关问题