-
-
Notifications
You must be signed in to change notification settings - Fork 103
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
Using Houdini breaks export { type Foo } from ...
syntax - causes crashes in the browser
#1391
Comments
Same issue, breaks shadcn-svelte
|
You can work around it -export { alertVariants, type AlertVariant } from "./alert.svelte";
+import { alertVariants, type AlertVariant } from "./alert.svelte";
+export { alertVariants, type AlertVariant }; |
I took a look, confirmed the reproduction and have no idea what's causing it. I'll keep thinking. Like you said, its realllly strange this happens on the client and not on the server 🤔 |
I encountered a very similar issue when using next.shadcn-svelte components with
Strangely, using the exclude option alone did not work: This workaround solved the issue for me, but the behavior is unexpected and inconsistent. ---- update ---- After clearing the cache, I realized that my previous workaround does not actually resolve the issue. The problem persists unless I explicitly define all paths where queries are used in the Here is the configuration that worked for me:
|
Describe the bug
Using the
houdini
vite plugin causes the following code to cause crashes when hydrating in the browser:lib/test/test.svelte
:lib/test/index.ts
:Reproduction here: https://github.com/fnimick/houdini-svelte-export-syntax-bug - created a blank sveltekit + houdini project using the templates, and adding the above files. No other changes were made.
Environment:
Reproduction
https://github.com/fnimick/houdini-svelte-export-syntax-bug
The text was updated successfully, but these errors were encountered: