dx(compiler-sfc): improve error message for missing template and script tag in vue file (#11723)

This commit is contained in:
Paul Werner 2024-08-28 11:49:33 +02:00 committed by GitHub
parent d6ccce9049
commit 334d47ddf3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -235,7 +235,7 @@ export function parse(
if (!descriptor.template && !descriptor.script && !descriptor.scriptSetup) {
errors.push(
new SyntaxError(
`At least one <template> or <script> is required in a single file component.`,
`At least one <template> or <script> is required in a single file component. ${descriptor.filename}`,
),
)
}