Firebase部署时无法读取未定义的属性"ngOriginalError" [英] Cannot read property 'ngOriginalError' of undefined while Firebase Deployment

查看:160
本文介绍了Firebase部署时无法读取未定义的属性"ngOriginalError"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将 Angular 2 应用程序部署在 Firebase 上. 即使在本地的生产模式下,一切都很好.

I am trying to deploy my Angular 2 application on Firebase. All is well and good even in prod mode in Local.

部署后,我会在屏幕上看到没有样式的内容,并且所有 Modal 的数据都会散布在屏幕上.

Once deployed, I get the content on the screen without styles and all the data of my Modal strewed across the screen.

控制台将错误显示为: 未捕获的TypeError :无法读取未定义的属性" ngOriginalError "

Console shows the error as: Uncaught TypeError: Cannot read property 'ngOriginalError' of undefined

我已经砸了好一阵子

我很确定,这与Jquery有关,因为我正在使用注入令牌.

I am pretty sure , this has to do with Jquery as I am using Injection Token.

任何一种帮助都是很好的.

Any kind of assistance would be great.

推荐答案

但是我发现了.

我直接从节点模块使用引导程序和jquery.

I was using bootstrap and jquery directly from node modules.

更改了index.html,以直接从CDN获取这些值.

Changed my index.html to get those values directly from CDN.

希望这对某人有帮助.

这篇关于Firebase部署时无法读取未定义的属性"ngOriginalError"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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