mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-29 09:02:03 +00:00
fix(nuxt): print errors when compiling templates (#26410)
This commit is contained in:
parent
f344d39dab
commit
4a880cb693
@ -47,6 +47,7 @@ export async function generateApp (nuxt: Nuxt, app: NuxtApp, options: { filter?:
|
||||
const oldContents = nuxt.vfs[fullPath]
|
||||
const contents = await compileTemplate(template, templateContext).catch((e) => {
|
||||
logger.error(`Could not compile template \`${template.filename}\`.`)
|
||||
logger.error(e)
|
||||
throw e
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user