Skip to content

Blaze compile errors completely silent if imported #396

Open
@TMeerhof

Description

@TMeerhof

In version 1.8 when compiling a blaze template from the /imports directory all errors are swallowed breaking the normal development process, because you get no line numbers or error specifications.

In 1.7 this problem is not present.

Reproduction:
Create a new meteor 1.8 project.

create a new malformed blaze template in the client folder.

<template name="test">
   {{#if}
</template>

You will get a compile error

Errors prevented startup:
   
   While processing files with templating-compiler (for target web.browser):
   client/test.html:2: Expected `}}`

Now move the file to /imports/client and add the import statement import '/imports/client/test.html'; to main.js.

There is no compile time error, but when running the app you get the following run time error
Uncaught Error: Cannot find module '/imports/client/test.html'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions