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
There is only a <script module> and no <script> in the component, but the snippet can not be exported, because the compiler treats the $page subscription as if it were local. If I remove the $ from $page, it can be exported.
Reproduction
<scriptmodule>
import { page } from'$app/stores';export { exampleSnippet }; // type checker error: exampleSnippet not found (undefined export)
</script>
{#snippetexampleSnippet()}
{JSON.stringify($page.data)}
{/snippet}