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

TypeError: undefined is not a function #6358

Closed
fluiddot opened this issue Nov 7, 2023 · 1 comment · Fixed by WordPress/gutenberg#56653
Closed

TypeError: undefined is not a function #6358

fluiddot opened this issue Nov 7, 2023 · 1 comment · Fixed by WordPress/gutenberg#56653

Comments

@fluiddot
Copy link
Contributor

fluiddot commented Nov 7, 2023

Sentry Issue: https://a8c.sentry.io/share/issue/9a338d040674404dad0055ce6249c2de/

⚠️ NOTE: On Android, all Javascript exceptions are being grouped in a single Sentry issue. Hence, we can't reference the specific crash here. Navigate to "All Events" in order to find events related to this crash.

Symbolicated stack trace:

gutenberg/packages/blocks/src/api/raw-handling/ms-list-ignore.js:25:msListIgnore
gutenberg/packages/blocks/src/api/raw-handling/utils.js:138:filters.forEach$argument_0
gutenberg/packages/blocks/src/api/raw-handling/utils.js:132:Array.from.forEach$argument_0
gutenberg/packages/blocks/src/api/raw-handling/utils.js:129:deepFilterNodeList
gutenberg/packages/blocks/src/api/raw-handling/utils.js:130:Array.from.forEach$argument_0
gutenberg/packages/blocks/src/api/raw-handling/utils.js:129:deepFilterNodeList
gutenberg/packages/blocks/src/api/raw-handling/utils.js:158:deepFilterHTML
gutenberg/packages/blocks/src/api/raw-handling/ms-list-converter.js:50:msListConverter
gutenberg/packages/blocks/src/api/raw-handling/utils.js:138:filters.forEach$argument_0
gutenberg/packages/blocks/src/api/raw-handling/utils.js:132:Array.from.forEach$argument_0
gutenberg/packages/blocks/src/api/raw-handling/utils.js:129:deepFilterNodeList
gutenberg/packages/blocks/src/api/raw-handling/utils.js:130:Array.from.forEach$argument_0
gutenberg/packages/blocks/src/api/raw-handling/utils.js:129:deepFilterNodeList
gutenberg/packages/blocks/src/api/raw-handling/utils.js:158:deepFilterHTML
gutenberg/packages/blocks/src/api/raw-handling/paste-handler.js:212:pieces.map$argument_0
gutenberg/packages/blocks/src/api/raw-handling/paste-handler.js:185:pasteHandler
gutenberg/packages/editor/src/components/post-title/index.native.js:67:PostTitle#onPaste
gutenberg/packages/rich-text/src/component/index.native.js:571:RichText#onPaste
gutenberg/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:22:invokeGuardedCallbackImpl
gutenberg/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:40:invokeGuardedCallback
gutenberg/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:53:invokeGuardedCallbackAndCatchFirstError
gutenberg/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:73:executeDispatch
gutenberg/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:1125:executeDispatchesAndReleaseTopLevel
gutenberg/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:361:forEachAccumulated
gutenberg/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:1160:batchedUpdates$argument_0
gutenberg/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:8457: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 ⤵️
anonymous@1:1779094
anonymous@1:1778291
anonymous@1:1778239
p@1:1778172
anonymous@1:1778225
p@1:1778172
anonymous@1:1778424
anonymous@1:1777211
anonymous@1:1778291
anonymous@1:1778239
p@1:1778172
anonymous@1:1778225
p@1:1778172
anonymous@1:1778424
anonymous@1:1773065
t@1:1772618
value@1:3830503
value@1:2950558
c@1:359373
m@1:359430
v@1:359462
w@1:359594
Le@1:363833
$@1:361087
anonymous@1:364185
Ce@1:421849
Ne@1:363753
Me@1:364026
receiveEvent@1:416466
value@1:166857
anonymous@1:165357
value@1:166303
value@1:165315
@fluiddot fluiddot changed the title TypeError: false is not a function TypeError: undefined is not a function Nov 7, 2023
@fluiddot fluiddot self-assigned this Nov 28, 2023
@fluiddot
Copy link
Contributor Author

fluiddot commented Nov 29, 2023

This issue seems related to copy content from Microsoft Word (reference). I only reproduced it by copying manually HTML code, but I presume some apps might be using the markup that produces this crash.

<p style="mso-list:l0 level1 lfo1"><span style="mso-list:Ignore">* </span>test</p>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant