grafana / clock-panel

Clock Panel Plugin for Grafana
MIT License
95 stars 62 forks source link

Grafana v9.0.0-beta2: TypeError: Object(...) is not a function #106

Closed marefr closed 2 years ago

marefr commented 2 years ago

Seems like having a Background Color configured crashes the dashboard/panel with the following error: TypeError: Object(...) is not a function at M.render (ClockPanel.tsx:305:57) at Ua (react-dom.production.min.js:187:188) at za (react-dom.production.min.js:186:173) at Zs (react-dom.production.min.js:269:427) at Ou (react-dom.production.min.js:250:347) at ku (react-dom.production.min.js:250:278) at Eu (react-dom.production.min.js:250:138) at vu (react-dom.production.min.js:243:163) at react-dom.production.min.js:123:115 at t.unstable_runWithPriority (scheduler.production.min.js:18:343)

Something on this line seems to fail: https://github.com/grafana/clock-panel/blob/7d8c5b49f405c5f0fde20b7d74425c1dc116260e/src/ClockPanel.tsx#L305

tolzhabayev commented 2 years ago

Related to https://github.com/grafana/grafana/pull/49519