Poor html error throwing


#1

Im not sure in which version it appeard, now im on 1.8.
I older versions when there was some syntax error in html it was catched on build level, so in my console i was able to see whats wrong. Now i noticed that in case of such sytax error i see everything ok in builder on client when template is loaded i see error like :

    Uncaught Error: Cannot find module './upsell.html'
    at makeMissingError (modules-runtime.js:232)
    at Module.require (modules-runtime.js:251)
    at Module.moduleLink [as link] (modules.js:344)
    at upsell.js (app.js:2784)
    at fileEvaluate (modules-runtime.js:346)
    at Module.require (modules-runtime.js:248)
    at Module.moduleLink [as link] (modules.js:344)
    at index.js (app.js:2773)
    at fileEvaluate (modules-runtime.js:346)
    at Module.require (modules-runtime.js:248)

Which gives nothing usefull and you have to go through whole html file lookig for what is wrong. Do you observe thing like this?


#2

Are you using Blaze?

I just made an HTML error (mistyped </div>) and got a build error:

=> Errors prevented startup:

   While processing files with templating-compiler (for target web.browser):
   client/main.html:13: Expected "div" end tag
   ...c.counter}}     </iv>   {{/each}}
   ^

=> Your application has errors. Waiting for file change.

#3

Yes im using Blaze, thats so strange it works different way for both of us. What version do you use ? I have 1.8.0.2


#4

That’s the version I’m using.