arnvanhoutte / ng-gutenberg

8 stars 5 forks source link

mediaUpload is not a function #12

Open reza7199 opened 3 years ago

reza7199 commented 3 years ago

core.js:7187 ERROR TypeError: mediaUpload is not a function at GalleryEdit.componentDidMount (edit.js:98) at commitLifeCycles (react-dom.development.js:23509) at commitLayoutEffects (react-dom.development.js:26743) at HTMLUnknownElement.callCallback (react-dom.development.js:1777) at ZoneDelegate.invokeTask (zone-evergreen.js:391) at Object.onInvokeTask (core.js:30885) at ZoneDelegate.invokeTask (zone-evergreen.js:390) at Zone.runTask (zone-evergreen.js:168) at ZoneTask.invokeTask [as invoke] (zone-evergreen.js:465) at invokeTask (zone-evergreen.js:1603) defaultErrorLogger @ core.js:7187 handleError @ core.js:7239 next @ core.js:31614 schedulerFn @ core.js:27846 __tryOrUnsub @ iif.js:4 next @ generate.js:82 _next @ generate.js:30 next @ generate.js:7 next @ fromEvent.js:61 emit @ core.js:27808 (anonymous) @ core.js:30943 invoke @ zone-evergreen.js:359 run @ zone-evergreen.js:124 runOutsideAngular @ core.js:30830 onHandleError @ core.js:30940 handleError @ zone-evergreen.js:363 runTask @ zone-evergreen.js:171 invokeTask @ zone-evergreen.js:465 invokeTask @ zone-evergreen.js:1603 globalZoneAwareCallback @ zone-evergreen.js:1629 invokeGuardedCallbackDev @ react-dom.development.js:1825 invokeGuardedCallback @ react-dom.development.js:1881 commitRootImpl @ react-dom.development.js:26481 unstable_runWithPriority @ showdown.js:1189 runWithPriority$2 @ react-dom.development.js:13570 commitRoot @ react-dom.development.js:26330 finishSyncRender @ react-dom.development.js:25735 performSyncWorkOnRoot @ react-dom.development.js:25715 (anonymous) @ react-dom.development.js:13621 unstable_runWithPriority @ showdown.js:1189 runWithPriority$2 @ react-dom.development.js:13570 flushSyncCallbackQueueImpl @ react-dom.development.js:13616 flushSyncCallbackQueue @ react-dom.development.js:13604 discreteUpdates$1 @ react-dom.development.js:25831 discreteUpdates @ react-dom.development.js:2882 dispatchDiscreteEvent @ react-dom.development.js:7326 invokeTask @ zone-evergreen.js:391 onInvokeTask @ core.js:30885 invokeTask @ zone-evergreen.js:390 runTask @ zone-evergreen.js:168 invokeTask @ zone-evergreen.js:465 invokeTask @ zone-evergreen.js:1603 globalZoneAwareCallback @ zone-evergreen.js:1629 Show 13 more frames react-dom.development.js:23251 The above error occurred in the component: in GalleryEdit (created by (GalleryEdit)) in (GalleryEdit) in Unknown (created by WithSelect((GalleryEdit))) in WithSelect((GalleryEdit)) (created by Edit) in Edit (created by WithToolbarControls(Edit)) in WithToolbarControls(Edit) (created by WithInspectorControl(WithToolbarControls(Edit))) in WithInspectorControl(WithToolbarControls(Edit)) (created by WithInspectorControl(WithInspectorControl(WithToolbarControls(Edit)))) in WithInspectorControl(WithInspectorControl(WithToolbarControls(Edit))) (created by WithFilters(Edit)) in WithFilters(Edit) (created by BlockEdit) in BlockEdit (created by BlockListBlock) in BlockCrashBoundary (created by BlockListBlock) in div (created by IgnoreNestedEvents) in IgnoreNestedEvents (created by ForwardRef(IgnoreNestedEvents)) in ForwardRef(IgnoreNestedEvents) (created by BlockListBlock) in div (created by BlockListBlock) in div (created by ForwardRef) in ForwardRef (created by IgnoreNestedEvents) in IgnoreNestedEvents (created by ForwardRef(IgnoreNestedEvents)) in ForwardRef(IgnoreNestedEvents) (created by BlockListBlock) in BlockListBlock in Unknown in Unknown (created by (BlockListBlock)) in (BlockListBlock) (created by WithFilters(BlockListBlock)) in WithFilters(BlockListBlock) (created by IfCondition(WithFilters(BlockListBlock))) in IfCondition(WithFilters(BlockListBlock)) (created by WithDispatch(IfCondition(WithFilters(BlockListBlock)))) in WithDispatch(IfCondition(WithFilters(BlockListBlock))) in Unknown (created by WithSelect(WithDispatch(IfCondition(WithFilters(BlockListBlock))))) in WithSelect(WithDispatch(IfCondition(WithFilters(BlockListBlock)))) in Unknown (created by Pure(WithViewportMatch(WithSelect(WithDispatch(IfCondition(WithFilters(BlockListBlock))))))) in Pure(WithViewportMatch(WithSelect(WithDispatch(IfCondition(WithFilters(BlockListBlock)))))) (created by BlockList) in BlockAsyncModeProvider (created by BlockList) in div (created by BlockList) in BlockList (created by WithDispatch(BlockList)) in WithDispatch(BlockList) in Unknown (created by WithSelect(WithDispatch(BlockList))) in WithSelect(WithDispatch(BlockList)) in Unknown in div (created by ObserveTyping) in ObserveTyping (created by WithSafeTimeout(ObserveTyping)) in WithSafeTimeout(ObserveTyping) (created by WithDispatch(WithSafeTimeout(ObserveTyping))) in WithDispatch(WithSafeTimeout(ObserveTyping)) in Unknown (created by WithSelect(WithDispatch(WithSafeTimeout(ObserveTyping)))) in WithSelect(WithDispatch(WithSafeTimeout(ObserveTyping))) in div (created by WritingFlow) in div (created by WritingFlow) in WritingFlow (created by WithDispatch(WritingFlow)) in WithDispatch(WritingFlow) in Unknown (created by WithSelect(WithDispatch(WritingFlow))) in WithSelect(WithDispatch(WritingFlow)) in div in BlockEditorProvider (created by WithDispatch(BlockEditorProvider)) in WithDispatch(BlockEditorProvider) in Unknown (created by Context.Consumer) in WithRegistryProvider(WithDispatch(BlockEditorProvider)) in div (created by DropZoneProvider) in DropZoneProvider in SlotFillProvider

React will try to recreate this component tree from scratch using the error boundary you provided, BlockCrashBoundary.