I’ve struggled through most of the process of getting a DataFrame-driven panel working (the documentation and examples are pretty poor, but that’s another matter), but I’m having problems with importing items from any of the namespaces starting with ‘@’.
For example…
import {
DataFrame,
DisplayValue,
Field,
fieldReducers,
FieldType,
GraphSeriesValue,
KeyValue,
LinkModel,
reduceField,
ReducerID,
LegacyResponseData,
getFlotPairs,
getDisplayProcessor,
getColorFromHexRgbOrName,
PanelEvents,
formattedValueToString,
} from '@grafana/data';
…will result in all of these names (ie. getFlotPairs, which I’d really like access to) being ‘undefined’.
Is there a trick I have to do, something I need to add to my tsconfig.json etc. to help my code find the classes defined in the relative namespaces?