Reputation: 1813
My Meteor application is crashing and cannot run. The following code breaks it:
for (var u = 0; u< 5; u++) {
console.log(u);
}
The error message is:
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.
How can this be solved?
Upvotes: 2
Views: 371
Reputation: 1481
It looks like you are writing JavaScript code in your HTML document. You should create a .js
file, e.g. poc.js
, and put the JavaScript there.
Upvotes: 4