-
-
Notifications
You must be signed in to change notification settings - Fork 98
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
Circular dependencies in $houdini folder #1304
Comments
Thanks for reporting these. If you have the time/energy to give it a shot i'd gladly offer any assistance you need. |
This is causing regular issues with my project - vite starts fine, but any hot reload has a chance of crashing vite with a circular dependency error in SSR, even when working on pages with no houdini interactions. |
|
@fnimick looking through your logs, i think the culprit is that first cycle that @shadow-identity called out. I pushed up a branch that removes it - mind seeing if that was enough to fix your issue? The branch name is |
Gonna 👀 this. I'm seeing similar behavior on latest version (1.2.54).
|
that circle should be fixed in the branch. Let me open a PR with just that fix |
Thanks for the fix! The first two error messages don't appear anymore, but the last four (from $houdini/index.js) are still here. I updated the reproduction repository with the updated houdini and houdini-svelte dependencies. Should we reopen the ticket or create a new one?
|
For some reason, even without updating houdini, I haven't run into circular imports in a while. Unfortunately I am not able to reliably duplicate the issue - it tends to happen after my dev server has been running and doing hot reloads and rebuilds for hours. |
Thanks for the update @fnimick. I'm gonna leave this issue open to address them anyway, just to be sure. |
Describe the bug
Generated
$houdini
folder has some circular dependencies across *.js files. It may lead to unpredictable consequences, including vite hangs.It is reproducible in the
example-sveltekit-todo
project. The minimal reproduction repo I provide is anexample-sveltekit-todo
fork, with updated houdini and addedvite-plugin-circular-dependency
to simplify the search of circular dependencies.Found circular dependencies are:
First two are absolutely valid (verified manually), tho I'm not 100% sure about the rest: it is quite hard to go through many of
export * from 'foo'
.Reproduction
https://github.com/shadow-identity/example-sveltekit-todo
The text was updated successfully, but these errors were encountered: