Panel option editor - Error

I’m implementing a custom panel option editor and keep encountering a yarn dev error that I suspect comes from incorrect syntax when I set the editor property.

195:15 error Component definition is missing display name react/display-name

I’ve been following the tutorial in docs, but I think the issue is with my React code…

If the issue is in fact with my React syntax, should I be using something other than an arrow function at line 195?

(Note: MonacoEditor is just a text editor I use. )


Grafana Version: v8.0.6
OS: Ubuntu 20.04.2 LTS

Update

The issue was with my React syntax. I was able to fix the issue by replacing

editor: (props) => {

with

editor:function myNamedFunction(props){

1 Like

This topic was automatically closed after 365 days. New replies are no longer allowed.