wordpress-mobile / WordPress-Android

WordPress for Android
http://android.wordpress.org
GNU General Public License v2.0
2.93k stars 1.31k forks source link

JavascriptException: TypeError: undefined is not a function #20266

Open sentry-io[bot] opened 4 months ago

sentry-io[bot] commented 4 months ago

Sentry Issue: JETPACK-ANDROID-JQ5

Symbolicated stack trace:

gutenberg/packages/components/src/mobile/color-settings/utils.native.js:17:getGradientType
gutenberg/packages/components/src/mobile/color-settings/utils.native.js:35:colorsUtils.isGradient
gutenberg/packages/components/src/color-indicator/index.native.js:40:ColorIndicator
gutenberg/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:3525:renderWithHooks
gutenberg/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:7743:beginWork$1
gutenberg/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:7304:performUnitOfWork
gutenberg/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:7297:workLoopSync
gutenberg/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:7279:renderRootSync
gutenberg/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:6975: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:1209:ReactNativePrivateInterface.RCTEventEmitter.register$argument_0.receiveTouches
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 E
    in RCTView
    in Unknown
    in b
    in Unknown
    in TouchableWithoutFeedback
    in RCTView
    in Unknown
    in AndroidHorizontalScrollContentView
    in AndroidHorizontalScrollView
    in I
    in ScrollView
    in h
    in RCTView
    in Unknown
    in RCTView
    in Unknown
    in p
    in RCTView
    in Unknown
    in h
    in Unknown
    in Unknown
    in Unknown
    in RCTView
    in Unknown
    in RCTView
    in Unknown
    in RCTView
    in Unknown
    in Unknown
    in RCTView
    in Unknown
    in b
    in Unknown
    in PanGestureHandler
    in Unknown
    in RCTView
    in Unknown
    in b
    in Unknown
    in RCTView
    in Unknown
    in k
    in Unknown
    in RCTView
    in Unknown
    in b
    in Unknown
    in l
    in l
    in Unknown
    in RCTView
    in Unknown
    in ScreenContainer
    in Unknown
    in RCTView
    in Unknown
    in Unknown
    in C
    in RCTView
    in Unknown
    in u
    in RNGestureHandlerRootView
    in Unknown
    in S
    in Unknown
    in n
    in Unknown
    in Unknown
    in RCTView
    in Unknown
    in AnimatedComponent(View)
    in Unknown
    in _
    in Unknown
    in v
    in RCTView
    in Unknown
    in RCTView
    in Unknown
    in P
    in Unknown
    in RCTView
    in Unknown
    in RCTScrollView
    in I
    in ScrollView
    in h
    in Unknown
    in Unknown
    in Unknown
    in RCTView
    in Unknown
    in RCTView
    in Unknown
    in RCTView
    in Unknown
    in Unknown
    in RCTView
    in Unknown
    in b
    in Unknown
    in PanGestureHandler
    in Unknown
    in RCTView
    in Unknown
    in b
    in Unknown
    in RCTView
    in Unknown
    in k
    in Unknown
    in RCTView
    in Unknown
    in b
    in Unknown
    in l
    in l
    in Unknown
    in RCTView
    in Unknown
    in ScreenContainer
    in Unknown
    in RCTView
    in Unknown
    in Unknown
    in C
    in RCTView
    in Unknown
    in u
    in RNGestureHandlerRootView
    in Unknown
    in S
    in Unknown
    in n
    in Unknown
    in Unknown
    in Unknown
    in Unknown
    in Unknown
    in Unknown
    in RCTView
    in Unknown
    in AnimatedComponent(View)
    in Unknown
    in _
    in RCTView
    in Unknown
    in RCTView
    in Unknown
    in w
    in RCTView
    in Unknown
    in b
    in Unknown
    in withAnimatable(View)
    in RCTView
    in Unknown
    in Unknown
    in RCTModalHostView
    in v
    in D
    in C
    in WithPreferredColorScheme(C)
    in Unknown
    in RCTView
    in Unknown
    in w
    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:
s@1:2204811
isGradient@1:2204897
E@1:2203848
Or@1:392226
Ma@1:432803
zi@1:419475
Ri@1:419377
Pi@1:419261
ki@1:416761
xt@1:381886
Ce@1:433176
Ne@1:375029
Me@1:375302
receiveTouches@1:428012
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 commented 4 months ago

Thanks for reporting! 👍