microsoft / Mezzurite

Your components, timed.
Other
61 stars 10 forks source link

"Can't resolve 'react-router' error" without withMezzuriteRouter being used #43

Open brrusino opened 5 years ago

brrusino commented 5 years ago

ERROR in ./node_modules/@microsoft/mezzurite-react/esm/mezzurite-react.js Module not found: Error: Can't resolve 'react-router' in 'C:\Projects\reveal\client\Reveal.UI.Web\client\node_modules\@microsoft\mezzurite-react\esm' @ ./node_modules/@microsoft/mezzurite-react/esm/mezzurite-react.js 5:0-42 212:11-21 @ ./app/workitems/components/WorkItemsListView/WorkItemsListView.jsx @ ./app/workitems/containers/WorkItemsListView/WorkItemsListView.jsx @ ./app/common/containers/App/App.jsx @ ./app/index.jsx @ multi webpack-hot-middleware/client @babel/polyfill whatwg-fetch ./app/index.jsx

Component: import {withMezzurite} from '@microsoft/mezzurite-react'; ... export default withMezzurite(WorkItemsListView);

brrusino commented 5 years ago

In the short term, installing 'react-router' will resolve this error. We're currently evaluating how best to support different routers without requiring separate or additional libraries per use case.