Skip to content
This repository has been archived by the owner on Dec 26, 2018. It is now read-only.

Make template compilation errors handling more abstract #216

Open
vladfaust opened this issue Jan 12, 2018 · 0 comments
Open

Make template compilation errors handling more abstract #216

vladfaust opened this issue Jan 12, 2018 · 0 comments

Comments

@vladfaust
Copy link

compiled.errors.forEach(function (msg) {
console.error('\n' + chalk.red(msg) + '\n')
})
throw new Error('Vue template compilation failed')

The only way to see an exact Vue-specific template compilation error (e.g. Component template should contain exactly one root element. If you are using v-if on multiple elements, use v-else-if to chain them instead.) is to look into the terminal.

It would be more convenient to include these errors into Error itself, so, for example, bumo could render it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant