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
Javascript 流星大型应用程序-未关闭<;车身>;_Javascript_Meteor - Fatal编程技术网

Javascript 流星大型应用程序-未关闭<;车身>;

Javascript 流星大型应用程序-未关闭<;车身>;,javascript,meteor,Javascript,Meteor,我正在Meteor中开发一个大型企业应用程序。我遇到的问题是,一旦我的html页面超过900多行,我就会偶尔(通常是代码行数更多)出现以下错误: Your app is crashing. Here's the latest log. Errors prevented startup: Exception while bundling application: Error: unclosed <body> - line 7, file /var/www/www.######.com

我正在Meteor中开发一个大型企业应用程序。我遇到的问题是,一旦我的html页面超过900多行,我就会偶尔(通常是代码行数更多)出现以下错误:

Your app is crashing. Here's the latest log.

Errors prevented startup:
Exception while bundling application:
Error: unclosed <body> - line 7, file /var/www/www.######.com/#######.html
<body>
    at new html_scanner.scan.parseError (/usr/lib/meteor/packages/templating/html_scanner.js:23:14)
    at Object.html_scanner.scan (/usr/lib/meteor/packages/templating/html_scanner.js:92:15)
    at /usr/lib/meteor/packages/templating/package.js:46:32
    at _.extend.add_file (/usr/lib/meteor/app/lib/bundler.js:195:5)
    at self.api.add_files (/usr/lib/meteor/app/lib/bundler.js:96:16)
    at Array.forEach (native)
    at Function._.each._.forEach (/usr/lib/meteor/app/lib/third/underscore.js:79:11)
    at self.api.add_files (/usr/lib/meteor/app/lib/bundler.js:95:11)
    at Array.forEach (native)
    at Function._.each._.forEach (/usr/lib/meteor/app/lib/third/underscore.js:79:11)
Your application is crashing. Waiting for file change.
你的应用程序正在崩溃。这是最新的日志。
阻止启动的错误:
捆绑应用程序时出现异常:
错误:未关闭-第7行,文件/var/www/www
在新的html_scanner.scan.parseError(/usr/lib/meteor/packages/templating/html_scanner.js:23:14)
在Object.html_scanner.scan(/usr/lib/meteor/packages/templating/html_scanner.js:92:15)
at/usr/lib/meteor/packages/templating/package.js:46:32
文件(/usr/lib/meteor/app/lib/bundler.js:195:5)
在self.api.add_文件(/usr/lib/meteor/app/lib/bundler.js:96:16)
at Array.forEach(本机)
at Function.each.forEach(/usr/lib/meteor/app/lib/third/underline.js:79:11)
在self.api.add_文件(/usr/lib/meteor/app/lib/bundler.js:95:11)
at Array.forEach(本机)
at Function.each.forEach(/usr/lib/meteor/app/lib/third/underline.js:79:11)
你的应用程序正在崩溃。正在等待文件更改。
如果我多次刷新我的页面,它最终会工作,我知道没有未关闭的标签。我将通过几个html lint程序运行html,没有错误。我的代码是专有的,所以我不能发布它,但我想知道还有其他人遇到过这个问题吗


我想知道html_扫描器是否有问题,但没有时间调试模板包。任何想法都将不胜感激

我试图用一个900多行的示例来复制这个问题,但用我提出的基本html无法做到这一点。我确实提出了一个解决方案,希望能帮助其他人。由于模板已经内置,我没有使用一个大的html,而是为模板标记中的每个“视图”创建了一个单独的html:

<template name="testView">(content)</template>

它似乎已经解决了上述问题,我的html主页减少到了300行,每个视图都在自己的html文件中。

错误消息似乎在抱怨标签未关闭。我会检查你的HTML,确保你正确关闭了所有标签


与您的具体问题无关,但在将模板包装到标记中时,我遇到了类似的错误。

您能否将您的情况简化为一个可复制的测试用例,以便在摘要中发布?一个基本的900多行HTML文件导致了与您描述的相同的问题。值得一提的是,我在Meteor 1.0.3.1项目中测试了一个包含3134行的HTML文件,一切都进行得很顺利。没有错误消息。
{{> testView }}