我的Meteor应用程序崩溃,无法运行。以下代码打破了它:
for (var u = 0; u< 5; u++) {
console.log(u);
}
错误消息是:
Your app is crashing. Here's the latest log.
Errors prevented startup:
While building the application:
poc.html:67: Expected tag name after `<`
... for (var u = 0; u< 5; u++) { c...
^
Your application has errors. Waiting for file change.
如何解决这个问题?
答案 0 :(得分:4)
看起来您正在HTML文档中编写JavaScript代码。您应该创建一个.js
文件,例如poc.js
,并将JavaScript放在那里。