grafana / faro-web-sdk

The Grafana Faro Web SDK, part of the Grafana Faro project, is a highly configurable web SDK for real user monitoring (RUM) that instruments browser frontend applications to capture observability signals. Frontend telemetry can then be correlated with backend and infrastructure data for full-stack observability.
https://grafana.com/oss/faro/
Apache License 2.0
745 stars 65 forks source link

Module '"@grafana/faro-react"' has no exported member 'createBrowserRouter'. #700

Closed omar-zahid closed 3 days ago

omar-zahid commented 6 days ago

Description

Module '"@grafana/faro-react"' has no exported member 'createBrowserRouter'. [2305]

Steps to reproduce

Using the following guide for react router v6 data router: https://grafana.com/docs/grafana-cloud/monitor-applications/frontend-observability/instrument/faro-react/v6-data-router/

Expected behavior

As per the example, createBrowserRouter should be imported from "@grafana/faro-react"

Actual behavior

Module '"@grafana/faro-react"' has no exported member 'createBrowserRouter'. [2305]

Environment

codecapitano commented 3 days ago

Hi @omar-zahid

Thanks a lot. This a mistake in the docs. createBrowserRouter is a react router component and is not exported by Faro. I am going to update the docs.

codecapitano commented 3 days ago

Fixed with https://github.com/grafana/faro-web-sdk/pull/701