Skip to content

Commit

Permalink
fix(nuxt): print errors when compiling templates (#26410)
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Mar 21, 2024
1 parent f344d39 commit 4a880cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/nuxt/src/core/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
})

Expand Down

0 comments on commit 4a880cb

Please sign in to comment.