Hi
When I import
import { getBackendSrv } from '@grafana/runtime';
into my custom react panel, I get a large list of TS errors that are coming from grafana/ui.
errors like these:
grafana/packages/grafana-ui/src/components/Alert/Alert.tsx
Type 'import("/home/me/go/src/github.com/grafana/grafana/packages/grafana-ui/node_modules/@types/react/index").CSSProperties' is not assignable to type 'React.CSSProperties'.
grafana/packages/grafana-ui/src/components/VizRepeater/VizRepeater.tsx
Type 'import("/home/me/go/src/github.com/grafana/grafana/packages/grafana-ui/node_modules/@types/react/index").CSSProperties' is not assignable to type 'React.CSSProperties'.
grafana/packages/grafana-ui/src/components/BigValue/BigValue.tsx
Type 'import("/home/me/go/src/github.com/grafana/grafana/packages/grafana-ui/node_modules/@types/react/index").CSSProperties' is not assignable to type 'React.CSSProperties'.
Does anyone know why this is happening ?