Getting "Cannot convert undefined or null" errors on queries after upgrading to latest release
See original GitHub issueI was on the 0.5.1-kit.5 release previously and my primary queries were working (though I was still struggling with subscriptions). I upgraded to latest, regenerated the schema, and now I am getting the following error, even after simplifying my schema to a single test query.
Cannot convert undefined or null to object
TypeError: Cannot convert undefined or null to object
at Function.entries (<anonymous>)
at Cache._write (/$houdini/runtime/cache/cache.js:232:45)
at Cache.write (/$houdini/runtime/cache/cache.js:19:14)
at Object.writeData (/$houdini/runtime/query.js:58:19)
at index.svelte:60:35
at Object.$$render (<PATH>/node_modules/svelte/internal/index.js:1380:22)
at Object.default (root.svelte:33:46)
at eval (<PATH>src/routes/__layout.svelte:44:36)
at Object.$$render (<PATH>/node_modules/svelte/internal/index.js:1380:22)
at root.svelte:31:44
Issue Analytics
- State:
- Created 2 years ago
- Comments:31
Top Results From Across the Web
Cannot convert undefined or null to object - Stack Overflow
This error is caused when you call a function that expects an Object as its argument, but pass undefined or null instead, like...
Read more >mongo Query Error: Cannot convert undefined or null to object
I'm trying to update status for specific product _id, but I get "Cannot convert undefined or null to object" error
Read more >There was an error initializing DB: “Cannot convert undefined ...
After I recreate my n8n deployment using latest version of n8n I'm receiving this error, and only worked after I downgraded to 0.190....
Read more >Cannot convert undefined or null to Object in JavaScript
The "Cannot convert undefined or null to Object" error occurs when we pass a null or an undefined value to a function that...
Read more >Getting An "Cannot convert undefined or null to object" Error
Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non- ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
yes, already updated 😃
I just pushed up 7e9a90e which should do a better job at capturing this error before it gets to the cache. Will publish it up momentarily