warnings.json — svelte Source File
Architecture documentation for warnings.json, a json file in the svelte codebase.
Entity Profile
Source Code
[
{
"code": "options_missing_custom_element",
"end": {
"column": 34,
"line": 1
},
"message": "The `customElement` option is used when generating a custom element. Did you forget the `customElement: true` compile option?",
"start": {
"column": 16,
"line": 1
}
},
{
"code": "custom_element_props_identifier",
"end": {
"column": 15,
"line": 4
},
"message": "Using a rest element or a non-destructured declaration with `$props()` means that Svelte can't infer what properties to expose when creating a custom element. Consider destructuring all the props or explicitly specifying the `customElement.props` option.",
"start": {
"column": 7,
"line": 4
}
}
]
Source
Frequently Asked Questions
What does warnings.json do?
warnings.json is a source file in the svelte codebase, written in json.
Where is warnings.json in the architecture?
warnings.json is located at packages/svelte/tests/validator/samples/custom-element-props-identifier-rest/warnings.json (directory: packages/svelte/tests/validator/samples/custom-element-props-identifier-rest).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free