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

Attempted import error: '__RouterContext' is not exported from 'react-router-dom'. #2

Closed
geekftz opened this issue Feb 1, 2021 · 2 comments

Comments

@geekftz
Copy link

geekftz commented Feb 1, 2021

react-router-dom v5

@GoodLuckAlien
Copy link
Owner

react-router-dom v5
您好,请删除依赖,重新安装试一下,有可能依赖冲突了

  "dependencies": {
    "@babel/plugin-syntax-class-properties": "^7.12.1",
    "@types/react": "^16.9.25",
    "react": "^16.8.1",
    "react-dom": "^16.8.1",
    "react-keepalive-router": "^1.1.0",
    "react-router": "^5.1.2",
    "react-router-dom": "^5.2.0",
  },

@geekftz
Copy link
Author

geekftz commented Feb 2, 2021

peerDependencies react-router-dom版本的问题 不能超过4.3 某些方法不能导出

@geekftz geekftz closed this as completed Feb 2, 2021
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