-
-
Notifications
You must be signed in to change notification settings - Fork 92
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
Inline-queries in non-route components doesn't work #571
Comments
Sorry to hear you are running into another issue - is this repo pushed up somewhere I can take a look? For context, we have a non-route component query in the integration tests that's working as expected so I suspect there is something wrong with your configuration values. can you share your config file? |
Thanks for getting back to me Alec - the repo isn't publicly available (it's an ecommerce website) but if the issue wasn't the config file I'll work on having an MVP representing the issue public so I could share it. Please find the config below
Let me know if this doesn't help and you need more details please. Thanks again! |
Thanks for that @yasserlens! Mind also sharing the relevant bits of your edit: probably worth mentioning that you will need to have |
Hey Alec Thanks - are you saying that "load_" functions aren't correctly generated due to not having ".js" in the include string?
Please find vite.config.js below:
And in case it was needed, client.ts is below
|
No, sorry my original message wasn't clear. It only really matters if you use generated loaders (
Oh! I think this is the problem. the houdini plugin needs to come before the sveltekit one so we can transform things before kit gets to it. |
@yasserlens were you able to check if that was the issue? |
I'm going to close this since it's gone stale. Let me know if you're still running into problems and I can reopen it |
@yasserlens I am facing same problem while I am trying to play with fragments. it seams only happen on dev server. |
@xmlking I haven't found a solution - so I avoided the use case. Also, Houdini had several major updates after that which I did not make - so not sure if this was solved by versions newer than the one I have. |
thanks for quick replay @yasserlens I guess I am missing some config needed for fragments. will reach out @AlecAivazis on discord. |
If you can update this when you know more that'll be great - for other people to learn from what happened. |
Describe the bug
I'm trying to follow the example below:
https://www.houdinigraphql.com/guides/working-with-graphql#inline-queries
I get the following error
The setup is something like this:
+layout.svelte
$lib/cart.svelte
This, plus a bunch of other reported errors (e.g. manual loading issues (see this discussion)) earlier makes houdini a real pain to use :-(
I'm spending hours on what should take minutes due to very odd errors with "magic" handlers that work behind the scenes with very little context/exposure into what's going on.
Relevant package versions
"houdini": "^0.16.5",
"svelte": "^3.50.1",
"@sveltejs/kit": "^1.0.0-next.476",
Note: the GraphQL API I'm using has some issues, which results in the following error when I generate the schema:
Severity
serious, but I can work around it
Steps to Reproduce the Bug
Follow the example below
https://www.houdinigraphql.com/guides/working-with-graphql#inline-queries
Reproduction
No response
The text was updated successfully, but these errors were encountered: