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

typescript 中使用 react-keeper 报错 #99

Open
abcde158308 opened this issue Dec 12, 2018 · 3 comments
Open

typescript 中使用 react-keeper 报错 #99

abcde158308 opened this issue Dec 12, 2018 · 3 comments

Comments

@abcde158308
Copy link

abcde158308 commented Dec 12, 2018

npm start 运行后 报错如下 TypeError: Cannot read property 'location' of undefined
路由版本为 "react-router": "^4.3.1"

@lanistor
Copy link
Owner

react-router?

@abcde158308
Copy link
Author

是的 react-router 报错

@abcde158308
Copy link
Author

` 62 |
63 | var route = router.route;
64 |

65 | var pathname = (location || route.location).pathname;
66 |
67 | return matchPath(pathname, { path: path, strict: strict, exact: exact, sensitive: sensitive }, route.match);
68 | };`

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

No branches or pull requests

2 participants