Unhandled Thrown Error! Cannot read properties of undefined (reading 'count')
See original GitHub issueHi, when I open memos today, there are some error log displayed on the page and can not view my memos. here are some error logs below. (version 0.4.5)
Unhandled Thrown Error!
Cannot read properties of undefined (reading 'count')
TypeError: Cannot read properties of undefined (reading 'count')
at https://xxx.xx/assets/index.f618fa86.js:107:19652
at Qs (https://xxx.xx/assets/index.f618fa86.js:32:24425)
at ci (https://xxx.xx/assets/index.f618fa86.js:32:42666)
at S9 (https://xxx.xx/assets/index.f618fa86.js:32:41472)
at so (https://xxx.xx/assets/index.f618fa86.js:32:40498)
at ty (https://xxx.xx/assets/index.f618fa86.js:32:37079)
at Xn (https://xxx.xx/assets/index.f618fa86.js:30:3274)
at https://xxx.xx/assets/index.f618fa86.js:32:34432
πΏ Hey developer π
You can provide a way better UX than this when your app throws errors by providing your own errorElement props on <Route>
Issue Analytics
- State:
- Created a year ago
- Comments:20 (9 by maintainers)
Top Results From Across the Web
Cannot Read Property of Undefined in JavaScript - Rollbar
TypeError : Cannot read property of undefined occurs when a property is read or a function is called on an undefined variable.
Read more >TypeError: Cannot read properties of undefined (reading 'id')
What is happening: The function itemToForm() is being called before the this.item is ready. There are many strategies to avoid this error.
Read more >Uncaught TypeError: Cannot read property of undefined In
Uncaught TypeError: Cannot read property of undefined error occurs in Chrome when you read a property or call a method on an undefined...
Read more >Cannot read properties of undefined (reading 'length') - TrackJS
This message indicates that our code expects to have an object with a length property, but that object was not present. length is...
Read more >error in setup: "typeerror: cannot read properties of undefined ...
Here's an example of a JavaScript TypeError: Cannot read property 'length' of undefined thrown when the length property is attempted to be read...
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
Thanks @boojack, Looks like the issue is resolved after the upgrade to v0.6.1.
@boojack One more finding is the
explore
page works properly.Looking at the docker log:
From the db structure, the NOT working db file is missing the below three triggers compare with the fresh install db file.
And the
memo_resource
table in the NOT working db file has no records, with theresource
table has records after the migration to 0.5.