Skip to content

Playground: Better error messages for special SvelteKit modules. #1373

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
brunnerh opened this issue Jun 4, 2025 · 0 comments
Open

Playground: Better error messages for special SvelteKit modules. #1373

brunnerh opened this issue Jun 4, 2025 · 0 comments

Comments

@brunnerh
Copy link
Member

brunnerh commented Jun 4, 2025

If you directly or indirectly import $app/... in the playground, you get an unhelpful error message like:

Error compiling component
Failed to import $app@latest. Are you sure the package exists?

Maybe there could be some filter for these SvelteKit modules to output a more helpful message as suggested by @frederikhors in:

(The main issue is probably that this filter could easily go out of sync with the current implementation when new modules are added.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant