Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/meteor/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Internet explorer 8 流星“;模板";在ie8、ie9中未定义_Internet Explorer 8_Meteor_Internet Explorer 9 - Fatal编程技术网

Internet explorer 8 流星“;模板";在ie8、ie9中未定义

Internet explorer 8 流星“;模板";在ie8、ie9中未定义,internet-explorer-8,meteor,internet-explorer-9,Internet Explorer 8,Meteor,Internet Explorer 9,我正在调试Meteor应用程序的一个问题,在使用IE8、IE9时。 使用Chrome或Safari时,我没有这个问题: 在Ie错误中: “模板”未定义。 “流星”没有定义。 如果我将文件中的所有模板包装为“If”: if(Meteor.isClient){my Template code}; 或者,如果是服务器代码: if(Meteor.isServer){my Template code}; 它在ie9中工作,但在ie8中不工作。 我认为Meteor会在其模板中创建我的模板,例如: 我的代码:

我正在调试Meteor应用程序的一个问题,在使用IE8、IE9时。 使用Chrome或Safari时,我没有这个问题: 在Ie错误中:

“模板”未定义。 “流星”没有定义。 如果我将文件中的所有模板包装为“If”: if(Meteor.isClient){my Template code}; 或者,如果是服务器代码: if(Meteor.isServer){my Template code}; 它在ie9中工作,但在ie8中不工作。 我认为Meteor会在其模板中创建我的模板,例如:

我的代码: if(Meteor.isClient){ Template.default.rendered=函数(){ $(窗口)。调整大小(函数(){ myFunction(); }); } }

Meteor包装我的模板,在ie8中,我可以看到我的模板和以下内容:

(function () {
Template.__define__("default", (function () {
    var self = this;
    var template = this;
    return [ Spacebars.include(self.lookupTemplate("navbar")), "\n\n    ", HTML.DIV({
        "class": "content-wrapper"
    }, "\n        ", HTML.DIV({
        "class": "container"
    }, "\n\n            ", Spacebars.include(self.lookupTemplate("yield")), "\n\n         "), "\n    "), "\n\n    ", Spacebars.include(self.lookupTemplate("footer")) ];
    }));
})();
在应用程序中使用iron router、nvd3js、bootstrap-3库。可能是他们的错误,但我认为这是流星的错误。我使用流星0.8.0。
如果我的meteor应用程序可以与ie8-9一起使用-请告诉我!如果你能说怎么做?我会非常感激的

当其他错误导致Meteor Javascript的其余部分无法正确加载时,通常会发生这种情况。您应该检查控制台中打印的第一个错误,它几乎总是罪魁祸首


如果你可以用整个错误日志更新你的问题,我可以用诊断更新我的答案。

你可以通过测试一个空项目来证明meteor本身与早期版本的IE兼容。很可能您提到的某个包已损坏,或者代码中出现了其他问题。我建议从一个空项目开始,一次添加一个,直到看到失败。