ITADN

Not working with `react-router` dependency instead of `react-router-dom`

#1656Openalex-kuck 创建于 2025-11-12
A
alex-kuckcommented
We have updated our react application to use `react-router` in favor of the no longer necessary `react-router-dom` (c.f. https://reactrouter.com/upgrading/v6#upgrade-to-v7) However, this results in build errors in conjunction with this library. When trying to build, we receive the following error: ```sh ERROR in ../../node_modules/@elastic/apm-rum-react/dist/es/get-apm-routes.js 3:0-113 Module not found: Error: Can't resolve 'react-router-dom' in '/home/runner/work/app/node_modules/@elastic/apm-rum-react/dist/es' ``` I have already opened a [Pull Request](https://github.com/elastic/apm-agent-rum-js/pull/1655) updating the imports. Please let me know if I can fix this issue any other way or need to modify the PR somehow. Thanks!
0 条评论