Instalei as dependecias de rotas e quando vai executar o projeto ele me da o seguinte erro:
×
TypeError: Cannot read property 'getCurrentLocation' of undefined
createTransitionManager
C:/projetos/cdc-admin/node_modules/react-router/es/Router.js:86
83 | children = _props.children;
84 |
85 |
> 86 | !history.getCurrentLocation ? process.env.NODE_ENV !== 'production' ? invariant(false, 'You have provided a history object created with history v4.x or v2.x ' + 'and earlier. This version of React Router is only compatible with v3 ' + 'history objects. Please change to history v3.x.') : invariant(false) : void 0;
87 |
88 | return _createTransitionManager(history, createRoutes(routes || children));
89 | },
O que poderia ser?