Home / Function/ legacy_export_invalid() — svelte Function Reference

legacy_export_invalid() — svelte Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

packages/svelte/src/compiler/errors.js lines 271–273

export function legacy_export_invalid(node) {
	e(node, 'legacy_export_invalid', `Cannot use \`export let\` in runes mode — use \`$props()\` instead\nhttps://svelte.dev/e/legacy_export_invalid`);
}

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free