store_invalid_shape() — svelte Function Reference
Architecture documentation for the store_invalid_shape() function in errors.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD e00979f4_19b2_6ab5_8ecb_a3144dae9416["store_invalid_shape()"] 5f3f0166_650d_4313_aa8b_50ab02160104["errors.js"] e00979f4_19b2_6ab5_8ecb_a3144dae9416 -->|defined in| 5f3f0166_650d_4313_aa8b_50ab02160104 dbd11d8d_56bf_a872_dc19_f047771254fd["validate_store()"] dbd11d8d_56bf_a872_dc19_f047771254fd -->|calls| e00979f4_19b2_6ab5_8ecb_a3144dae9416 style e00979f4_19b2_6ab5_8ecb_a3144dae9416 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/internal/shared/errors.js lines 108–118
export function store_invalid_shape(name) {
if (DEV) {
const error = new Error(`store_invalid_shape\n\`${name}\` is not a store with a \`subscribe\` method\nhttps://svelte.dev/e/store_invalid_shape`);
error.name = 'Svelte error';
throw error;
} else {
throw new Error(`https://svelte.dev/e/store_invalid_shape`);
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does store_invalid_shape() do?
store_invalid_shape() is a function in the svelte codebase, defined in packages/svelte/src/internal/shared/errors.js.
Where is store_invalid_shape() defined?
store_invalid_shape() is defined in packages/svelte/src/internal/shared/errors.js at line 108.
What calls store_invalid_shape()?
store_invalid_shape() is called by 1 function(s): validate_store.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free