You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had a table and a matching query (external file) and everything worked fine. I deleted the table (in hasura) and forgot to remove the matching query, when running houdini again I got the following error, which I couldn't assign to any file or code changes.
>[email protected] generate
> houdini generate -v -p -ph x-hasura-admin-secret=blablabla
🎩 Generating runtime...
❌ Cannot read properties of undefined (reading 'type')
at Object.Directive (file:///home/kasimir/Downloads/serverdocumentation/uis/example_ui_one/node_modules/houdini/build/cmd.js:73751:72)
at Module.visit (/home/kasimir/Downloads/serverdocumentation/uis/example_ui_one/node_modules/graphql/language/visitor.js:243:26)
at typeCheck (file:///home/kasimir/Downloads/serverdocumentation/uis/example_ui_one/node_modules/houdini/build/cmd.js:73679:17)
at runPipeline$1 (file:///home/kasimir/Downloads/serverdocumentation/uis/example_ui_one/node_modules/houdini/build/cmd.js:5544:15)
at runPipeline (file:///home/kasimir/Downloads/serverdocumentation/uis/example_ui_one/node_modules/houdini/build/cmd.js:74421:11)
at async compile (file:///home/kasimir/Downloads/serverdocumentation/uis/example_ui_one/node_modules/houdini/build/cmd.js:74388:5)
at async Command.<anonymous> (file:///home/kasimir/Downloads/serverdocumentation/uis/example_ui_one/node_modules/houdini/build/cmd.js:116022:9)
After a while, I discovered by coincidence that I have a query that I don't need anymore and deleted it. It then worked again. Further investigation revealed that the error is displayed directly if you do not use @list in your query.
>[email protected] generate
> houdini generate -v -p -ph x-hasura-admin-secret=blablabla
🎩 Generating runtime...
❌ Encountered error in src/graphql/Organisations.graphql
Cannot query field "Organisation" on type"query_root". Did you mean "Translation"?
Severity
annoyance
Steps to Reproduce the Bug
Create a query in an external file without a matching type (in my case without a matching table in hasura) and use @list
run houdini generate -v -p -ph x-hasura-admin-secret=blablabla
Read the unprecise/incomplete error message
Create a query in an external file without a matching type (in my case without a matching table in hasura) and not use @list
run houdini generate -v -p -ph x-hasura-admin-secret=blablabla
Read the precise error message including the note to the problematic file
Expected behavior
I expect the same error message, or reference to the incorrect file, as when I do not use @list in the query.
System Info
houdini: ^0.15.8 (and ^0.15.9)
hasura: v2.5.1
Reproduction
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
I had a table and a matching query (external file) and everything worked fine. I deleted the table (in hasura) and forgot to remove the matching query, when running houdini again I got the following error, which I couldn't assign to any file or code changes.
Query with
@list
:Error Message for query with
@list
:After a while, I discovered by coincidence that I have a query that I don't need anymore and deleted it. It then worked again. Further investigation revealed that the error is displayed directly if you do not use
@list
in your query.Query wihtout
@list
:Error Message for query without
@list
:Severity
annoyance
Steps to Reproduce the Bug
@list
houdini generate -v -p -ph x-hasura-admin-secret=blablabla
@list
houdini generate -v -p -ph x-hasura-admin-secret=blablabla
Expected behavior
I expect the same error message, or reference to the incorrect file, as when I do not use
@list
in the query.System Info
Reproduction
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: