Home / Function/ state_invalid_export() — svelte Function Reference

state_invalid_export() — svelte Function Reference

Architecture documentation for the state_invalid_export() function in errors.js from the svelte codebase.

Entity Profile

Dependency Diagram

graph TD
  bd5eca30_3212_dd88_7501_cf245ff26ff4["state_invalid_export()"]
  495501a4_a342_6a4d_ac11_e3e2fee8b218["errors.js"]
  bd5eca30_3212_dd88_7501_cf245ff26ff4 -->|defined in| 495501a4_a342_6a4d_ac11_e3e2fee8b218
  e96115fe_8b72_b5a0_9f38_7fcb6136263b["ExportNamedDeclaration()"]
  e96115fe_8b72_b5a0_9f38_7fcb6136263b -->|calls| bd5eca30_3212_dd88_7501_cf245ff26ff4
  cc0c7132_9605_cd69_23b0_b710d67b19c8["validate_export()"]
  cc0c7132_9605_cd69_23b0_b710d67b19c8 -->|calls| bd5eca30_3212_dd88_7501_cf245ff26ff4
  style bd5eca30_3212_dd88_7501_cf245ff26ff4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/compiler/errors.js lines 518–520

export function state_invalid_export(node) {
	e(node, 'state_invalid_export', `Cannot export state from a module if it is reassigned. Either export a function returning the state value or only mutate the state value's properties\nhttps://svelte.dev/e/state_invalid_export`);
}

Domain

Subdomains

Frequently Asked Questions

What does state_invalid_export() do?
state_invalid_export() is a function in the svelte codebase, defined in packages/svelte/src/compiler/errors.js.
Where is state_invalid_export() defined?
state_invalid_export() is defined in packages/svelte/src/compiler/errors.js at line 518.
What calls state_invalid_export()?
state_invalid_export() is called by 2 function(s): ExportNamedDeclaration, validate_export.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free