gpt4 book ai didi

javascript - Meteor 应用程序可能在 Chrome 更新后无法在 Chrome 中运行

转载 作者:行者123 更新时间:2023-11-29 16:07:24 24 4
gpt4 key购买 nike

我有一个用 Meteor 构建的应用程序。我在本地运行它,它也部署在服务器上。我刚刚发现该应用程序不再在 Chrome 上运行。我不确定,但可能唯一的区别是我的 Chrome 今天获得了更新。该应用程序在 Firefox 和 IE Edge 以及较旧的 IE 上运行良好。我查看了控制台并发现了这些错误:

Exception in callback of async function: Error: Handler with name 'hookWithOptions' already exists.
at MiddlewareStack._create (http://localhost:3000/packages/iron_middleware-stack.js?3370bd57ef7b310cca3f5dddb11b77fafdcfc1eb:198:13)
at MiddlewareStack.push (http://localhost:3000/packages/iron_middleware-stack.js?3370bd57ef7b310cca3f5dddb11b77fafdcfc1eb:214:22)
at http://localhost:3000/packages/iron_middleware-stack.js?3370bd57ef7b310cca3f5dddb11b77fafdcfc1eb:232:12
at Array.forEach (native)
at Function._.each._.forEach (http://localhost:3000/packages/underscore.js?fa590de5090ceb4a42555b48562fd8f8e7035758:157:11)
at MiddlewareStack.append (http://localhost:3000/packages/iron_middleware-stack.js?3370bd57ef7b310cca3f5dddb11b77fafdcfc1eb:228:5)
at http://localhost:3000/packages/iron_middleware-stack.js?3370bd57ef7b310cca3f5dddb11b77fafdcfc1eb:234:19
at Array.forEach (native)
at Function._.each._.forEach (http://localhost:3000/packages/underscore.js?fa590de5090ceb4a42555b48562fd8f8e7035758:157:11)
at MiddlewareStack.append (http://localhost:3000/packages/iron_middleware-stack.js?3370bd57ef7b310cca3f5dddb11b77fafdcfc1eb:228:5)

上面的错误是针对本地主机上的应用程序。

部署在服务器上的,在2、3次commit之后出现了这些错误:

Exception in callback of async function: Error: Handler with name 'u' already exists.
at o._create (http://mynotes.work/6c81f4e47fc2bd6f405f6e71ba64f1376939052d.js?meteor_js_resource=true:108:1599)
at o.push (http://mynotes.work/6c81f4e47fc2bd6f405f6e71ba64f1376939052d.js?meteor_js_resource=true:108:1783)
at http://mynotes.work/6c81f4e47fc2bd6f405f6e71ba64f1376939052d.js?meteor_js_resource=true:108:2033
at Array.forEach (native)
at Function.A.each.A.forEach (http://mynotes.work/6c81f4e47fc2bd6f405f6e71ba64f1376939052d.js?meteor_js_resource=true:3:877)
at o.append (http://mynotes.work/6c81f4e47fc2bd6f405f6e71ba64f1376939052d.js?meteor_js_resource=true:108:1963)
at http://mynotes.work/6c81f4e47fc2bd6f405f6e71ba64f1376939052d.js?meteor_js_resource=true:108:2152
at Array.forEach (native)
at Function.A.each.A.forEach (http://mynotes.work/6c81f4e47fc2bd6f405f6e71ba64f1376939052d.js?meteor_js_resource=true:3:877)
at o.append (http://mynotes.work/6c81f4e47fc2bd6f405f6e71ba64f1376939052d.js?meteor_js_resource=true:108:1963)

我从没想过浏览器更新可能会像那样破坏您的应用程序。有谁知道出了什么问题?如果您想查看,该应用程序的链接是:http://mynotes.work/

我当前的 Chrome 版本是这样的:51.0.2704.84 m

最佳答案

根据这个线程 https://forums.meteor.com/t/solved-error-handler-with-name-u-already-exists/23910/12更新 irron:middleware-stack 有帮助。

meteor update iron:middleware-stack 应该可以解决这个问题。

关于javascript - Meteor 应用程序可能在 Chrome 更新后无法在 Chrome 中运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37733608/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com