-
-
Notifications
You must be signed in to change notification settings - Fork 100
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
Doesn't work with vite 5.3 #1306
Comments
It seems to be a |
@jycouet thanks, it still not working. |
@jycouet It works, I didn't remove the letter ^ before version at first time. Thanks a lot. |
after some investigating: the error seems to be coming from here:
which throws this error:
(doing the testing on my svelte-5 branch because it's the only one which has been upgraded to vite 5 so far...) |
more investigating: (and mainly writing this down so that I don't forget) When houdini-svelte looks for inline queries, it walks the AST.
This houdini/packages/houdini/src/vite/houdini.ts Line 241 in 6c5dbda
Rollup docs (Vite adopts these): https://rollupjs.org/plugin-development/#plugin-context By the time that the AST walker comes around to the call to Which then in turn goes to: where for some reason Seems to be a side-effect of the Vite plugin infrastructure rewrite in 5.3.0 -> vitejs/vite#17288 |
@SeppahBaws so is this an issue that needs to be fixed on Houdini's or Vite's side? And if Vite's side - is there already an open issue? |
I'm not sure, I haven't worked with vite plugin development before, but since their release didn't mention any breaking changes I am inclined to think that it's something to be fixed on Vite's side? I might open up an issue there anyways to ask for help with fixing this if we can't figure it out on our side... We'll also look at adding houdini to their vite-ecosystem CI pipeline so that any breaking changes are detected before a release is pushed 🙂 |
Sounds like a great idea, thank you 🙂 |
It seems an edge case bug that bring in by the side-effect for refactoring the plugin container to a class. While should be fixed by |
Ah thanks for the reply! |
After a brief discussion with the team, I think we made the consensus that this is considered an implementation detail, moving back would require us to do a lot manually I would suggest this plugin to:
|
Describe the bug
It works fine with sveltKit1/vite4. But I encounter some problems when I upgrade to svelteKit2.
❌ Encountered error in src/lib/components/mobile/home/mobileHomeHeader.svelte
Cannot read properties of undefined (reading 'watchFiles')
Reproduction
No response
The text was updated successfully, but these errors were encountered: