I tried to use @grafana/runtime module in custom panel to access my datasource.
(To extend table panel)
import { PanelProps, ThemeContext, Table} from '@grafana/ui';
import { getBackendSrv } from '@grafana/runtime';
export class TablePanel extends Component<Props> {
...
}
But the panel couldn’t found like this.
Panel plugin not found: my-custom-panel
why the grafana url requests public/@grafana/runtime
after http://localhost:2527/public/plugins/my-custom-plugin/module.js?_cache=1565248954418
- Request URL: http://localhost:2527/public/@grafana/runtime?_cache=1565248954418
- Request Method:GET
- Status Code: 404 Not Found