“在非 ES5 类上调用 getInternalNameOfClass() 中的错误:预期 AngularFireModule 具有内部类声明"

编程入门 行业动态 更新时间:2024-10-26 11:24:56
本文介绍了“在非 ES5 类上调用 getInternalNameOfClass() 中的错误:预期 AngularFireModule 具有内部类声明"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..
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屋!

更多推荐

[db:关键词]

本文发布于:2023-04-22 11:21:26,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1023057.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:部类   声明   错误   getInternalNameOfClass   quot

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!