-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
Describe the bug
A clear and concise description of what the bug is.
App build fails with No matching export in "node_modules/react-router-dom/index.js" for import "useHistory"
when using version 6.0.0-beta.0 of react-router-dom.
To Reproduce
Steps to reproduce the behavior:
- Install history & react-router-dom@next packages
- Install react-motion-layout package
- Use the Motion Layout Provider as per http://motion-layout.com/docs/animating#1-use-the-motion-layout-provider
- Try running the dev server (yarn dev, npm start etc.)
- See error
Expected behavior
Dev server runs without errors.
Additional context
The issue is kind of related to #13. I saw this reply, which states that there's going to be a new version of the package. Idk if it's going to be a router-agnostic solution or a Next.js router compatibility update. react-router-dom package had it's pretty stable beta release for quite a while now. It might be good to adopt some router-agnostic solution in the future
Nefonfo
Metadata
Metadata
Assignees
Labels
No labels