Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JavascriptException: TypeError: undefined is not a function #20369

Closed
sentry-io bot opened this issue Mar 1, 2024 · 4 comments · Fixed by WordPress/gutenberg#59632
Closed

JavascriptException: TypeError: undefined is not a function #20369

sentry-io bot opened this issue Mar 1, 2024 · 4 comments · Fixed by WordPress/gutenberg#59632
Labels
Gutenberg Editing and display of Gutenberg blocks. [Pri] Medium [Type] Crash

Comments

@sentry-io
Copy link

sentry-io bot commented Mar 1, 2024

Sentry Issue: JETPACK-ANDROID-K2E

Symbolicated stack trace:

gutenberg/packages/core-data/src/footnotes/get-rich-text-values-cached.js:31:getRichTextValuesCached
gutenberg/packages/core-data/src/footnotes/get-footnotes-order.js:11:getBlockFootnotesOrder
gutenberg/packages/core-data/src/footnotes/get-footnotes-order.js:34:getFootnotesOrder
gutenberg/packages/core-data/src/footnotes/index.js:20:updateFootnotesFromMeta
gutenberg/packages/core-data/src/entity-provider.js:202:updateFootnotes
gutenberg/packages/core-data/src/entity-provider.js:243:onInput
gutenberg/packages/block-editor/src/components/provider/use-block-sync.js:272:registry.subscribe$argument_0
gutenberg/packages/data/src/registry.js:247:currentSubscribe$argument_0
gutenberg/packages/data/src/redux-store/index.js:356:store.subscribe$argument_0
gutenberg/node_modules/redux/lib/redux.js:304:dispatch
gutenberg/packages/data/src/redux-store/thunk-middleware.js:7:<anonymous>
gutenberg/packages/redux-routine/src/index.js:24:<anonymous>
gutenberg/packages/data/src/promise-middleware.js:20:<anonymous>
gutenberg/packages/data/src/resolvers-cache-middleware.js:45:<anonymous>
gutenberg/packages/data/src/redux-store/index.js:204:<anonymous>
gutenberg/packages/block-editor/src/components/block-list/block.native.js:485:setAttributes
gutenberg/packages/data/src/components/use-dispatch/use-dispatch-with-map.js:53:<anonymous>
gutenberg/packages/block-library/src/cover/edit.native.js:286:useEffect$argument_0
gutenberg/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:5875:commitHookEffectListMount
gutenberg/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:7562:flushPassiveEffects
gutenberg/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:6972:performSyncWorkOnRoot
gutenberg/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:2145:flushSyncCallbacks
gutenberg/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:8462:batchedUpdatesImpl
gutenberg/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:1106:batchedUpdates
gutenberg/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:1137:_receiveRootNodeIDEvent
gutenberg/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:1178:ReactNativePrivateInterface.RCTEventEmitter.register$argument_0.receiveEvent
gutenberg/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:427:__callFunction
gutenberg/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:113:__guard$argument_0
gutenberg/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:368:__guard
gutenberg/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:112:callFunctionReturnFlushedQueue

Raw stack trace:

JavascriptException: TypeError: undefined is not a function

This error is located at:
    in Unknown
    in WithPreferredColorScheme(Component)
    in WithDispatch(WithPreferredColorScheme(Component))
    in Unknown
    in WithSelect(WithDispatch(WithPreferredColorScheme(Component)))
    in E
    in WithBlockEditHooks(E)
    in WithFilters(E)
    in Unknown
    in RCTView
    in Unknown
    in AnimatedComponent(View)
    in Unknown
    in LongPressGestureHandler
    in Unknown
    in w
    in RCTView
    in Unknown
    in Unknown
    in L
    in Unknown
    in WithBlockListBlockHooks(Component)
    in WithFilters(Component)
    in IfCondition(WithFilters(Component))
    in WithDispatch(IfCondition(WithFilters(Component)))
    in Unknown
    in WithSelect(WithDispatch(IfCondition(WithFilters(Component))))
    in RCTView
    in Unknown
    in I
    in b
    in RCTView
    in Unknown
    in RCTView
    in Unknown
    in RCTView
    in Unknown
    in RCTView
    in Unknown
    in Unknown
    in Unknown
    in L
    in b
    in x
    in RCTView
    in Unknown
    in o
    in RCTView
    in Unknown
    in TouchableWithoutFeedback
    in f
    in Unknown
    in E
    in WithBlockEditHooks(E)
    in WithFilters(E)
    in Unknown
    in RCTView
    in Unknown
    in AnimatedComponent(View)
    in Unknown
    in LongPressGestureHandler
    in Unknown
    in w
    in RCTView
    in Unknown
    in Unknown
    in L
    in Unknown
    in WithBlockListBlockHooks(Component)
    in WithFilters(Component)
    in IfCondition(WithFilters(Component))
    in WithDispatch(IfCondition(WithFilters(Component)))
    in Unknown
    in WithSelect(WithDispatch(IfCondition(WithFilters(Component))))
    in RCTView
    in Unknown
    in I
    in b
    in RCTView
    in Unknown
    in s
    in Unknown
    in C
    in RCTView
    in Unknown
    in RCTScrollView
    in I
    in ScrollView
    in Unknown
    in K
    in L
    in AnimatedComponent(L)
    in Unknown
    in RCTView
    in Unknown
    in w
    in h
    in RCTView
    in Unknown
    in AnimatedComponent(View)
    in Unknown
    in E
    in AnimatedComponent(E)
    in Unknown
    in Unknown
    in l
    in Unknown
    in RCTView
    in Unknown
    in Unknown
    in R
    in RCTView
    in Unknown
    in RCTView
    in Unknown
    in RCTView
    in Unknown
    in Unknown
    in H
    in WithPreferredColorScheme(H)
    in Unknown
    in WithSelect(WithPreferredColorScheme(H))
    in RNCSafeAreaProvider
    in Unknown
    in Unknown
    in Unknown
    in Unknown
    in WithRegistryProvider(Component)
    in Unknown
    in Unknown
    in Unknown
    in Unknown
    in Unknown
    in WithRegistryProvider(Component)
    in x
    in S
    in WithDispatch(S)
    in Unknown
    in WithSelect(WithDispatch(S))
    in c
    in RNGestureHandlerRootView
    in Unknown
    in M
    in WithDispatch(M)
    in Unknown
    in WithSelect(WithDispatch(M))
    in j
    in RCTView
    in Unknown
    in RCTView
    in Unknown
    in h, js engine: hermes, stack:
anonymous@1:3542165
o@1:3541786
anonymous@1:3541960
anonymous@1:3540578
anonymous@1:3539445
anonymous@1:3539713
anonymous@1:3156091
anonymous@1:1613135
anonymous@1:1620161
b@1:1623240
anonymous@1:1642964
anonymous@1:1626280
anonymous@1:1642255
anonymous@1:1642554
anonymous@1:1619055
setAttributes@1:3131781
anonymous@1:1657493
anonymous@1:4145952
Sa@1:408660
Ui@1:421411
ki@1:416728
xt@1:381886
Ce@1:433176
Ne@1:375029
Me@1:375302
receiveEvent@1:427742
value@1:171963
anonymous@1:170463
value@1:171409
value@1:170421

    at com.facebook.react.modules.core.ExceptionsManagerModule.reportException(ExceptionsManagerModule.java:72)
    at java.lang.reflect.Method.invoke(Method.java)
    at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:372)
    at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:188)
    at com.facebook.jni.NativeRunnable.run(NativeRunnable.java)
...
(7 additional frame(s) were not displayed)
@dangermattic
Copy link
Collaborator

dangermattic commented Mar 1, 2024

Thanks for reporting! 👍

@RenanLukas
Copy link
Contributor

Similar to #20266

@RenanLukas RenanLukas added [Pri] Medium [Type] Crash Gutenberg Editing and display of Gutenberg blocks. labels Mar 1, 2024
@fluiddot
Copy link
Contributor

fluiddot commented Mar 6, 2024

Same issue as wordpress-mobile/gutenberg-mobile#6703.

@fluiddot
Copy link
Contributor

fluiddot commented Mar 6, 2024

Similar to #20266

Although the error message is the same, #20266 has a different stack trace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Gutenberg Editing and display of Gutenberg blocks. [Pri] Medium [Type] Crash
Projects
None yet
3 participants