Home / Function/ snippet_without_render_tag() — svelte Function Reference

snippet_without_render_tag() — svelte Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  e2d93793_9517_3d36_3595_3fecf15e1e6a["snippet_without_render_tag()"]
  5f3f0166_650d_4313_aa8b_50ab02160104["errors.js"]
  e2d93793_9517_3d36_3595_3fecf15e1e6a -->|defined in| 5f3f0166_650d_4313_aa8b_50ab02160104
  0d21de2f_c368_11a9_aaed_968bef73a292["prevent_snippet_stringification()"]
  0d21de2f_c368_11a9_aaed_968bef73a292 -->|calls| e2d93793_9517_3d36_3595_3fecf15e1e6a
  style e2d93793_9517_3d36_3595_3fecf15e1e6a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/internal/shared/errors.js lines 91–101

export function snippet_without_render_tag() {
	if (DEV) {
		const error = new Error(`snippet_without_render_tag\nAttempted to render a snippet without a \`{@render}\` block. This would cause the snippet code to be stringified instead of its content being rendered to the DOM. To fix this, change \`{snippet}\` to \`{@render snippet()}\`.\nhttps://svelte.dev/e/snippet_without_render_tag`);

		error.name = 'Svelte error';

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

Subdomains

Frequently Asked Questions

What does snippet_without_render_tag() do?
snippet_without_render_tag() is a function in the svelte codebase, defined in packages/svelte/src/internal/shared/errors.js.
Where is snippet_without_render_tag() defined?
snippet_without_render_tag() is defined in packages/svelte/src/internal/shared/errors.js at line 91.
What calls snippet_without_render_tag()?
snippet_without_render_tag() is called by 1 function(s): prevent_snippet_stringification.

Analyze Your Own Codebase

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

Try Supermodel Free