You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I saw the following error messages I did not quickly understand what caused the error
TS error (shown when hovering error in editor):
Cannot export 'snippet_name'. Only local declarations can be exported from a module.
vite-plugin-svelte error (shown in dev console or vite-error-overlay):
`snippet_name` is not defined
https://svelte.dev/e/export_undefined
Problematic code
<scriptmodule>
export { snippet_name }
</script>
<script>
let state =$state(true)
</script>
{#snippetsnippet_name()}
{#ifstate} ... {/if}
{/snippet}