“在非 ES5 类上调用 getInternalNameOfClass() 中的错误:预期 AngularFireModule 具有内部类声明" [英] "ERROR in getInternalNameOfClass() called on a non-ES5 class: expected AngularFireModule to have an inner class declaration"

查看:26
本文介绍了“在非 ES5 类上调用 getInternalNameOfClass() 中的错误:预期 AngularFireModule 具有内部类声明"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Terminal -

    "WARNING in Invalid constructor parameter decorator in D:/New folder/SilverLife/node_modules/@angular/fire/fesm2015/angular-fire.js:
     () => [
        { type: Object, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] }
    ]
    
    ERROR in getInternalNameOfClass() called on a non-ES5 class: expected
    AngularFireModule to have an inner class declaration"

我在 Angular 9 项目中集成 Angular firebase 时遇到了这个问题.

I am facing this issue while integrating Angular firebase in my Angular 9 project.

推荐答案

尝试在 es5tsconfig.jsoncompilerOptions 中更改目标> 到 es2015

Try changing target in the compilerOptions of your tsconfig.json from es5 to es2015

这篇关于“在非 ES5 类上调用 getInternalNameOfClass() 中的错误:预期 AngularFireModule 具有内部类声明"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆