Migrate jqhtml slot syntax from <#name> to <Slot:name>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
4
node_modules/@jqhtml/parser/dist/errors.js
generated
vendored
4
node_modules/@jqhtml/parser/dist/errors.js
generated
vendored
@@ -94,7 +94,7 @@ export function getSuggestion(error) {
|
||||
return '\nDid you forget the closing </Define:ComponentName> tag?';
|
||||
}
|
||||
if (error.includes('Unclosed slot')) {
|
||||
return '\nDid you mean to use a self-closing slot? Try <#name /> instead.';
|
||||
return '\nDid you mean to use a self-closing slot? Try <Slot:name /> instead.';
|
||||
}
|
||||
if (error.includes('Unclosed tag') || error.includes('Unclosed component')) {
|
||||
return '\n\nThis element was opened but never closed. Make sure every opening tag has a matching closing tag.\n' +
|
||||
@@ -113,7 +113,7 @@ export function getSuggestion(error) {
|
||||
return '\nCheck that your opening and closing tags match exactly (case-sensitive).';
|
||||
}
|
||||
if (error.includes('Mixed content not allowed')) {
|
||||
return '\nWhen using slots, wrap all content in <#slotname> tags. Use <#default> for the main content.';
|
||||
return '\nWhen using slots, wrap all content in <Slot:slotname> tags. Use <Slot:default> for the main content.';
|
||||
}
|
||||
return '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user