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

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

react-router 引入hashHistory 為何為undefined

react-router 引入hashHistory 為何為undefined

chenzhizhuo 2017-09-03 21:16:13
import {Router,Link,Route,hashHistory} from 'react-router'console.log(hashHistory) => undefined ??console.log(Route) ?=> 輸出正確dependencies 中已安裝?"react-router": "^4.1.2", ?頁面運(yùn)行正常,就是引入react-router 會(huì)異常這是為何?defined21:09:52.562 main.js:826 Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in. Check the render method of `Root`.21:09:52.566 main.js:826 Warning: Failed prop type: The prop `history` is marked as required in `Router`, but its value is `undefined`.ght TypeError: Cannot read property 'location' of undefined
查看完整描述

8 回答

  • 8 回答
  • 0 關(guān)注
  • 14759 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號

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