We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0620217 commit 7810af8Copy full SHA for 7810af8
lib/template-compiler.js
@@ -62,7 +62,7 @@ module.exports = function (html) {
62
preserveWhitespace: options.preserveWhitespace
63
}, defaultCompileOptions))
64
var code
65
- if (compiled.errors.length) {
+ if (compiled.errors && compiled.errors.length) {
66
this.emitError(
67
`\n Error compiling template:\n${pad(html)}\n` +
68
compiled.errors.map(e => ` - ${e}`).join('\n') + '\n'
0 commit comments