component_api_changed() — svelte Function Reference
Architecture documentation for the component_api_changed() function in errors.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD 5f62a2c0_8890_0e65_854f_6ea7e5cf18b3["component_api_changed()"] ff387d97_d6d2_81e0_e731_656552709d27["errors.js"] 5f62a2c0_8890_0e65_854f_6ea7e5cf18b3 -->|defined in| ff387d97_d6d2_81e0_e731_656552709d27 0e927d14_a7d1_8cce_a29a_2a2e604a85c7["legacy_api()"] 0e927d14_a7d1_8cce_a29a_2a2e604a85c7 -->|calls| 5f62a2c0_8890_0e65_854f_6ea7e5cf18b3 style 5f62a2c0_8890_0e65_854f_6ea7e5cf18b3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/internal/client/errors.js lines 83–93
export function component_api_changed(method, component) {
if (DEV) {
const error = new Error(`component_api_changed\nCalling \`${method}\` on a component instance (of ${component}) is no longer valid in Svelte 5\nhttps://svelte.dev/e/component_api_changed`);
error.name = 'Svelte error';
throw error;
} else {
throw new Error(`https://svelte.dev/e/component_api_changed`);
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does component_api_changed() do?
component_api_changed() is a function in the svelte codebase, defined in packages/svelte/src/internal/client/errors.js.
Where is component_api_changed() defined?
component_api_changed() is defined in packages/svelte/src/internal/client/errors.js at line 83.
What calls component_api_changed()?
component_api_changed() is called by 1 function(s): legacy_api.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free