【发布时间】:2018-06-12 08:56:53
【问题描述】:
我仅在 Firefox 中遇到此错误。
找不到问题的根源。
堆栈跟踪参考 node_modules/jquery/dist/jquery.js
终点是 jquerystyle[ name ] = value; 中 jquery 的 style 方法中的这一行,但我的应用程序代码中没有 style 方法调用。
也许旧的 Angular.js 在 ng-style 评估中调用它?
任何建议表示赞赏。
Angular 1.6
Angular 5.2.9(混合应用)
JQuery 3.3.1(是的,我知道它很丑,我们将在我们应用程序的新 Angular 版本中摆脱它)
火狐 60.0.1
UPD错误日志。
TypeError: 0 是只读堆栈跟踪: style@webpack-internal:///./node_modules/jquery/dist/jquery.js:6498:6 set@webpack-internal:///./node_modules/jquery/dist/jquery.js:6764:5 run@webpack-internal:///./node_modules/jquery/dist/jquery.js:6725:4 tick@webpack-internal:///./node_modules/jquery/dist/jquery.js:7094:5 jQuery.fx.tick@webpack-internal:///./node_modules/jquery/dist/jquery.js:7436:9 schedule@webpack-internal:///./node_modules/jquery/dist/jquery.js:6813:3 ZoneDelegate.prototype.invokeTask@webpack-internal:///./node_modules/zone.js/dist/zone.js:421:17 onInvokeTask@webpack-internal:///./node_modules/@angular/core/esm5/core.js:4956:24 ZoneDelegate.prototype.invokeTask@webpack-internal:///./node_modules/zone.js/dist/zone.js:420:17 Zone.prototype.runTask@webpack-internal:///./node_modules/zone.js/dist/zone.js:188:28 ZoneTask.invokeTask@webpack-internal:///./node_modules/zone.js/dist/zone.js:496:24 ZoneTask/this.invoke@webpack-internal:///./node_modules/zone.js/dist/zone.js:485:28 timer@webpack-internal:///./node_modules/zone.js/dist/zone.js:2025:17
【问题讨论】:
-
@JaromandaX 已经读过了。没有什么帮助,因为我们的项目非常大,我不知道是什么代码导致了错误我的代码中也没有 defineProperty 或 freeze 。所以它应该是一些全局属性,类似的东西。
-
我们根本看不到你的项目 - 所以,你有更好的机会:p
-
您需要发布您的整个错误日志,如果我们看不到它,我们无能为力
-
@AlekseySolovey 添加了错误日志。无法发布任何代码,因为项目非常大,问题是我不知道哪个模块导致错误。
标签: javascript jquery angularjs firefox