-
Notifications
You must be signed in to change notification settings - Fork 12k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PanelPlugin is not a constructor #20338
Comments
I am not sure what is happening -- in 6.5 (master/beta) you should be able to import from either grafana/ui or grafana/data
is this a plugin that was built earlier, and is now not working? are you able to compile it against 6.4 or master? |
Changing this helped, thanks + // @ts-ignore
+ import { PanelPlugin } from '@grafana/data';
- import { PanelPlugin } from '@grafana/ui'; But importing from |
In 6.5+ it is moved to '@grafana/data' -- until 7.0, it will also be exported at runtime to panels under |
I'll close this -- and think it works (with back compatibility) in 6.5+ reopen if there is something you think we can change moving forward (besides having a stable API!!!) |
@simPod how did you manage to run it with Grafana 6.3 ? I am working on Grafana 6.3.5 and facing issue with react plugin. |
@WaleedNaveed sorry, I don't remember. I always use bleeding edge and Grafana 6.3 is old so I guess I have not tried. |
I'm creating custom plugin. This is my module.tsx:
However, I'm getting
It worked with Grafana 6.3, now it's not. I checked the docs and it all seems to comply 🤔
Environment:
"@grafana/toolkit": "^6.4.0-beta.2",
The text was updated successfully, but these errors were encountered: