Home / Function/ experimental_async_required() — svelte Function Reference

experimental_async_required() — svelte Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  86f95661_7459_07fc_03dd_0d0b7b304606["experimental_async_required()"]
  5f3f0166_650d_4313_aa8b_50ab02160104["errors.js"]
  86f95661_7459_07fc_03dd_0d0b7b304606 -->|defined in| 5f3f0166_650d_4313_aa8b_50ab02160104
  style 86f95661_7459_07fc_03dd_0d0b7b304606 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/internal/shared/errors.js lines 10–20

export function experimental_async_required(name) {
	if (DEV) {
		const error = new Error(`experimental_async_required\nCannot use \`${name}(...)\` unless the \`experimental.async\` compiler option is \`true\`\nhttps://svelte.dev/e/experimental_async_required`);

		error.name = 'Svelte error';

		throw error;
	} else {
		throw new Error(`https://svelte.dev/e/experimental_async_required`);
	}
}

Subdomains

Frequently Asked Questions

What does experimental_async_required() do?
experimental_async_required() is a function in the svelte codebase, defined in packages/svelte/src/internal/shared/errors.js.
Where is experimental_async_required() defined?
experimental_async_required() is defined in packages/svelte/src/internal/shared/errors.js at line 10.

Analyze Your Own Codebase

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

Try Supermodel Free