第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

zan-design出現(xiàn)react dnd報(bào)錯(cuò)

zan-design出現(xiàn)react dnd報(bào)錯(cuò)

慕哥9229398 2019-05-22 21:52:22
報(bào)錯(cuò)信息:Warning:ComponentEditorCarddeclared`PropTypes`insteadof`propTypes`.Didyoumisspellthepropertyassignment?Warning:Failedcontexttype:Thecontext`dragDropManager`ismarkedasrequiredin`DropTarget(DragSource(EditorCardItem))`,butitsvalueis`undefined`.inDropTarget(DragSource(EditorCardItem))(createdbyEditorCard)indiv(createdbyEditorCard)inEditorCard(createdbyShowCaseEditor)indiv(createdbyShowCaseEditor)inShowCaseEditor(createdbyDroppable)indiv(createdbyDesignEditorItem)inDesignEditorItem(createdbyDroppable)indiv(createdbyDesignPreviewItem)inDesignPreviewItem(createdbyDroppable)indiv(createdbyDroppable)inDroppableDimensionPublisher(createdbyConnect(DroppableDimensionPublisher))inConnect(DroppableDimensionPublisher)(createdbyDroppable)inDroppable(createdbyConnect(Droppable))inConnect(Droppable)(createdbyDesignPreview)indiv(createdbyDesignPreview)inDragDropContext(createdbyDesignPreview)inDesignPreview(createdbyDesign)indiv(createdbyDesign)inDesign(atindex.js:141)indiv(atindex.js:139)inCreate(createdbyRoute)inRoute(createdbywithRouter(Create))inwithRouter(Create)(createdbyRoute)inRoute(atroutes.js:21)inSwitch(atroutes.js:20)inRouter(createdbyBrowserRouter)inBrowserRouter(atroutes.js:19)inRoutes(atindex.js:13)UncaughtError:CouldnotfindthedraganddropmanagerinthecontextofDragSource(EditorCardItem).Makesuretowrapthetop-levelcomponentofyourappwithDragDropContext.Readmore:http://react-dnd.github.io/react-dnd/docs-troubleshooting.html#could-not-find-the-drag-and-drop-manager-in-the-contextatinvariant(browser.js:38)atnewDragDropContainer(decorateHandler.js:102)atconstructClassInstance(react-dom.development.js:6355)atupdateClassComponent(react-dom.development.js:7839)atbeginWork(react-dom.development.js:8225)atperformUnitOfWork(react-dom.development.js:10224)atworkLoop(react-dom.development.js:10288)atHTMLUnknownElement.callCallback(react-dom.development.js:542)atObject.invokeGuardedCallbackDev(react-dom.development.js:581)atinvokeGuardedCallback(react-dom.development.js:438)atrenderRoot(react-dom.development.js:10366)atperformWorkOnRoot(react-dom.development.js:11014)atperformWork(react-dom.development.js:10967)atrequestWork(react-dom.development.js:10878)atscheduleWorkImpl(react-dom.development.js:10732)atscheduleWork(react-dom.development.js:10689)atObject.enqueueSetState(react-dom.development.js:6212)atDesign../node_modules/react/cjs/react.development.js.Component.setState(react.development.js:237)atDesign.onSelect(Design.js:773)atonAdd(Design.js:817)atDesignEditorAddComponent.js:100Theaboveerroroccurredinthecomponent:inDropTarget(DragSource(EditorCardItem))(createdbyEditorCard)indiv(createdbyEditorCard)inEditorCard(createdbyShowCaseEditor)indiv(createdbyShowCaseEditor)inShowCaseEditor(createdbyDroppable)indiv(createdbyDesignEditorItem)inDesignEditorItem(createdbyDroppable)indiv(createdbyDesignPreviewItem)inDesignPreviewItem(createdbyDroppable)indiv(createdbyDroppable)inDroppableDimensionPublisher(createdbyConnect(DroppableDimensionPublisher))inConnect(DroppableDimensionPublisher)(createdbyDroppable)inDroppable(createdbyConnect(Droppable))inConnect(Droppable)(createdbyDesignPreview)indiv(createdbyDesignPreview)inDragDropContext(createdbyDesignPreview)inDesignPreview(createdbyDesign)indiv(createdbyDesign)inDesign(atindex.js:141)indiv(atindex.js:139)inCreate(createdbyRoute)inRoute(createdbywithRouter(Create))inwithRouter(Create)(createdbyRoute)inRoute(atroutes.js:21)inSwitch(atroutes.js:20)inRouter(createdbyBrowserRouter)inBrowserRouter(atroutes.js:19)inRoutes(atindex.js:13)Consideraddinganerrorboundarytoyourtreetocustomizeerrorhandlingbehavior.Visithttps://fb.me/react-error-boundariestolearnmoreabouterrorboundaries.Warning:Canonlyupdateamountedormountingcomponent.ThisusuallymeansyoucalledsetState,replaceState,orforceUpdateonanunmountedcomponent.Thisisano-op.PleasecheckthecodefortheDesigncomponent.問(wèn)題出現(xiàn):https://github.com/youzan/zen...跑起來(lái)沒(méi)有問(wèn)題的使用creaet-react-app創(chuàng)建項(xiàng)目并引入zan-design引入魔方和櫥窗組件點(diǎn)擊時(shí)候會(huì)出現(xiàn)以上問(wèn)題導(dǎo)致頁(yè)面無(wú)法顯示使用create-react-app新建項(xiàng)目并提取demo的client文件夾部分跑起項(xiàng)目,同樣出現(xiàn)以上問(wèn)題。如果由于reactdnd找不到context問(wèn)題為何官網(wǎng)demo沒(méi)有暴露?
查看完整描述

2 回答

?
FFIVE

TA貢獻(xiàn)1797條經(jīng)驗(yàn) 獲得超6個(gè)贊

ReactDnd需要一層包裹,需要你自己包一下,可以參考以下代碼
importHTML5Backendfrom'react-dnd-html5-backend';import{DragDropContext}from'react-dnd';
classYourApp{/.../}
exportdefaultDragDropContext(HTML5Backend)(YourApp);
                            
查看完整回答
反對(duì) 回復(fù) 2019-05-22
  • 2 回答
  • 0 關(guān)注
  • 1180 瀏覽
慕課專(zhuān)欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢(xún)優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)