-
Notifications
You must be signed in to change notification settings - Fork 91
Page crashes when modifying data #23
Comments
It's looks like same issue what I face. when I try to change form data, my application got crash. because, json result what returned from |
and here is my repository that has a same issue: https://github.com/iamchanii/gatsby-tinacms-example (this is made for wrote my blog post. please consider that contains language not english.) |
Thanks for the extra info on this issue! I'll troubleshoot and see if I can come up with a fix. |
I have a fix for this that's working for me locally, I've pushed the fix to master. In form definitions where null returns are creating an issue I've made them return a blank string instead of null by adding a custom parser to the form definition like so:
I was able to recreate the error described above and this fix seemed to work for me. Once you merge in this change I'd recommend running Let me know if this works! 😄 |
1c3c887 commit works. can you try |
I guess something is not compatible with latest gatsby. I test my repository with |
For anyone who is using Netlify and getting the error Check to see if this is the issue using Thanks for this AMAZING starter. This is a true game-changer. |
Hi,
First of all, thanks for this awesome starter, it looks very promising.
While experimenting locally i encountered a very annoying issue. When modifying the site configuration via
pencil > hamburger menu > Site
the page crashes with the following error when updating the site titleTypeError: null is not an object (evaluating 'data.site.title')
. It does not matter if i add, remove or replace characters, the page crashes for any action. The same goes for the other fields.I also checked if similar crashes occur at other places on the site and they do. For example when updating the title or the link of a menu item:
TypeError: null is not an object (evaluating 'menu.menuItems')
.To me it looks like before the new value gets assigned, it becomes null first, causing crashes when the null value is used before it is updated to the new value.
Is this a known issue or can it have something to do with my setup? Like it is now it is impossible to use. Reloading the page after the crash makes the page load again.
I'm using node v12.13.1, Gatsby CLI 2.8.18, Safari on macOS Catalina, commit 6d675bd. If you need anything else just let me know.
The text was updated successfully, but these errors were encountered: