grafana / piechart-panel

Pie Chart Panel Plugin
MIT License
151 stars 101 forks source link

Error loading panel plugin: grafana-piechart-panel SyntaxError: Unexpected token '<' #224

Open nanqiaoYue opened 4 years ago

nanqiaoYue commented 4 years ago

Hello: Recently I tried plug-in development and encountered the following problems:

Environment: grafana6.6.1 node12.x pieChart official latest version

Run: use the official plug-in to develop the recommended pieChart. When copying into the plug-in, change the name and id, use the plug-in, and encounter error:

backend.js:6 Error loading panel plugin: grafana-piechartdemo-panel SyntaxError: Unexpected token '<' at eval () at Re (system.js:4) at system.js:4 at j (system.js:4) at O (system.js:4) at k (system.js:4) at system.js:4

As shown in the following figure: image

Looked at the official documents, compared with the official available plug-in, I found that the code is consistent with everything, I don't understand the development of the plug-in appeared this problem and the cause, Can someone give me a hand, thank you thank you ~~~

soulmachine commented 4 years ago

I have a similar issue, it crashes:

An unexpected error happened
Details
TypeError: Cannot read property 'length' of undefined