Some of my exported components are exported withRouter from react-dom-router library. When I import bit component into my other projects, I get a withRouter used outside of error. Is there any workaround around this?
I had this problem with react redux, and the issue was the exported component had a different version of react-redux than my project I imported the component into. The resolution was to make react-redux a peer dependency other the component with a relaxed version that would work in both my projects.