在Chrome获得更新后,Meteor应用程序可能无法在Chrome中运行

时间:2016-06-09 18:29:00

标签: javascript google-chrome meteor

我有一个在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)

上面的错误是针对localhost上的应用程序。

部署在服务器上的那个,后面有2,3次提交有这些错误:

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

1 个答案:

答案 0 :(得分:6)

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

流星更新铁:中间件堆栈应该解决这个问题。