question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Getting "Cannot convert undefined or null" errors on queries after upgrading to latest release

See original GitHub issue

I 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:closed
  • Created 2 years ago
  • Comments:31

github_iconTop GitHub Comments

1reaction
thormullercommented, May 25, 2021

yes, already updated 😃

1reaction
AlecAivaziscommented, May 25, 2021

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found