[Getting Started with React and AEM SPA Editor - Chapter 3] - Router error - Target container is not a DOM element.
Hello!
I am executing the AEM SPA react tutorial from the documentation below:
I did everything as documentation is saying, except because I am using updated version to node and npm:
Node: v14.16.1
npm: 6.14.12
Everything is working fine until I install React Router, create RouteHelper.js and update index.js to to wrap the App with BrowserRouter and ScrollToTop components
When I do this, I start to get the error below on my react app (localhost:3000)

When I come back my application to state that was before the instalation of the React Router, everything works again.
Can someone help me? Thanks in advance!