位置“/”不匹配任何路线
Location "/" did not match any routes
实在是看不出来是怎么回事,花了一整天的时间想弄明白是怎么回事。
升级版 react-router: "^1.0.3" and "history": "^1.17.0"
并且总是收到这条很好的警告消息:
Warning: Location "/" did not match any routes
路由器在这里
https://github.com/darul75/web-react/blob/master/app/app-dev.js#L7
我的路线
https://github.com/darul75/web-react/blob/master/app/routes.js
正在寻找使用堆栈进行调试但在那里很棘手
function matchRoutes(routes, location, callback) {}
没有成功,谁能帮助我就太好了
在app-dev.js
中,更改
import Router from 'react-router';
到 import {Router} from 'react-router';
和
const routes = require('./routes');
到 import routes from './routes';
实在是看不出来是怎么回事,花了一整天的时间想弄明白是怎么回事。
升级版 react-router: "^1.0.3" and "history": "^1.17.0"
并且总是收到这条很好的警告消息:
Warning: Location "/" did not match any routes
路由器在这里 https://github.com/darul75/web-react/blob/master/app/app-dev.js#L7
我的路线 https://github.com/darul75/web-react/blob/master/app/routes.js
正在寻找使用堆栈进行调试但在那里很棘手
function matchRoutes(routes, location, callback) {}
没有成功,谁能帮助我就太好了
在app-dev.js
中,更改
import Router from 'react-router';
到 import {Router} from 'react-router';
和
const routes = require('./routes');
到 import routes from './routes';