You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
react-router-v7 folder is missing from 6.5.0 and 6.4.0 resulting in Cannot find module '@datadog/browser-rum-react/react-router-v7' errors when trying to import from the v7 module
import { Routes } from "@datadog/browser-rum-react/react-router-v7";
Expected behavior
Expecting to import the react-router-v7 Routes component
Observed behavior:
[vite] Internal server error: Failed to resolve import "@datadog/browser-rum-react/react-router-v7" from "src/routes.tsx". Does the file exist?
Plugin: vite:import-analysis
File: /src/routes.tsx:26:9
1425| import { Routes } from "@datadog/browser-rum-react/react-router-v7";
A workaround is to import directly from the entries folder:
import { Routes } from "@datadog/browser-rum-react/src/entries/reactRouterV7";
and add react-router-dom-7 as an dependancy in our package.json
Describe the bug
react-router-v7 folder is missing from 6.5.0 and 6.4.0 resulting in
Cannot find module '@datadog/browser-rum-react/react-router-v7'
errors when trying to import from the v7 modulehttps://www.npmjs.com/package/@datadog/browser-rum-react?activeTab=code
To Reproduce
Steps to reproduce the behavior:
npm install @datadog/browser-rum-react@latest
import { Routes } from "@datadog/browser-rum-react/react-router-v7";
Expected behavior
Expecting to import the react-router-v7 Routes component
Observed behavior:
A workaround is to import directly from the entries folder:
and add
react-router-dom-7
as an dependancy in our package.jsonor probably better as the
react-router-dom
package is being phased outThe text was updated successfully, but these errors were encountered: