2017-10-19 157 views
2

我得到IE11下此错误:流星 - IE11会显示空白页

对象不支持此属性或方法“为”上线:

var esSymKey = useSymbol ? Symbol.for(esStrKey) : null; 

从node_modules /流星/模块/ node.modules/reify/lib/runtime/utils.js
in modules.js。

我尝试更新的一切,但没有运气

我的包列表如下:

meteor-base 

mobile-experience 
mongo 
blaze-html-templates 
session  
[email protected] 
tracker 
es5-shim 

coffeescript 
msavin:mongol 
tap:i18n 
tap:i18n-db-modified 
globalconstants 
reywood:publish-composite 
fourseven:scss 
reactive-var 
mystor:device-detection 
subs-manager-modified 
fastclick 
check 
manuelschoebel:ms-seo-modified 
mrt:modernizr-meteor 
gorillastack:iron-router-gtm 
iron:router 
standard-minifier-css 
standard-minifier-js 
add-scripts 
tap:i18n-bundler 
shell-server 
dynamic-import 
webapp 

chrome-spiderable 

你有什么想法?

谢谢。

+0

你如何解决它? – cesarve

+2

我在head.html中添加了 。不是我所假设的最佳解决方案,但其他解决方案无法正常工作。 –

+0

非常感谢!它适用于我 – cesarve

回答

2

IE 11不支持Symbol

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol

您将需要添加一个填充工具添加对它的支持。

https://github.com/medikoo/es6-symbol

如果你使用其他ES6 +功能,你可能会polyfilling Symbol后立即运行到另一个错误。您应该可以使用某种类型的转译器,如Babel。它将确保您的新代码在旧版浏览器上运行。

+0

这当然是问题。我安装了babel-polyfill,并在main.js的顶部执行require('babel-polyfill'),但遇到同样的问题。这个特定的错误出现在Meteor Reify核心中:node_modules/meteor/modules/node_modules/reify/lib/runtime/utils.js \t在这种情况发生之前,我无法加载polyfill。 – Turbo

+0

更新:我看到上面的技巧在标题中执行