Support » Developing with WordPress » Gutenberg block development error preventing post to be saved

  • Resolved Allyson Souza

    (@allysonsouza)


    I’m creating a custom Gutenberg Block for a project to display match moments for sports, with title, description, minutes, etc.

    Here’s my block and componentes js: https://gist.github.com/allysonsouza/61808ecb8ed1a330a164a7ef2f055cc3

    But it started to trigger errors while I try to save the post, even if there’s no Match Moment block inserted. Those area the errors I see in the console:

    Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of PopoverDetectOutside which is inside StrictMode. Instead, add a ref directly to the element you want to reference.

    Warning: React does not recognize the <code>instanceId</code> prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase <code>instanceid</code> instead. If you accidentally passed it from a parent component, remove it from the DOM element.

    uncaught exception: Object

    I’m new to React and Gutenberg block creation, so I don’t know how to do a better debug, but I tried to rollback to previous versions in Git but the errors still ocurring.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • I didn’t change a line of code, but cleared the cache, restarted the browser and updated the WordPress, and then everything worked, so, that’s the insight if someone come with the same issue.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.