Giter Site home page Giter Site logo

RCTFatalException: Unhandled JS Exception: TypeError: Cannot read property 'getEditWrapperProps' of undefined This error is ...: Unhandled JS Exception: TypeError: Cannot read property 'getEditWrapperProps' of undefined about gutenberg-mobile HOT 3 CLOSED

sentry-io avatar sentry-io commented on June 21, 2024
RCTFatalException: Unhandled JS Exception: TypeError: Cannot read property 'getEditWrapperProps' of undefined This error is ...: Unhandled JS Exception: TypeError: Cannot read property 'getEditWrapperProps' of undefined

from gutenberg-mobile.

Comments (3)

derekblank avatar derekblank commented on June 21, 2024 1

I was able to reproduce this on both platforms following the steps above, but it seems like a rare circumstance. I did not note any other sentry events that weren't from internal testing, but I could have missed them within the grouped Sentry issue.

I traced the exception back to this code in block.native.js, where blockType.getWrapperEditProps was being accessed when blockType did not exist. I then noted the web implementation adds logic to check if blockTypes exists before getting wrapperProps.

The fix proposed in WordPress/gutenberg#56846 prevents the crash and improves alignment with web behavior. I'm wondering if it's the best fix, however, as we haven't encountered this error with other blocks. It may have something to do with the <!-- wp:jetpack/paywall /--> block name, and these changes to unregister this block when the postType is a page: Automattic/jetpack@014b087. I tried investigating from the Jetpack side within the paywall block, but did not note anything that would resolve the crash.

@fluiddot @geriux I requested review on the PR if you have any suggestions.

from gutenberg-mobile.

fluiddot avatar fluiddot commented on June 21, 2024

The first time I spotted this crash was when checking JavaScript exceptions in version 23.7-rc-1 of the Jetpack Android app (reference).

from gutenberg-mobile.

fluiddot avatar fluiddot commented on June 21, 2024

Fixed in WordPress/gutenberg#56846.

from gutenberg-mobile.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.