How to import node_modules plugin ,i occur some questions


#1

image
image
node_modules has this file image


#2

Think the answer is the same as your other question:

Grafana cannot build a plugin and the plugin runs inside Grafana so your 3rd party code is not in Grafana’s node_modules directory. You need to copy any code needed from the plugin’s node_modules directory into the plugin source directory.


#3

I have the same problem as you. Is your solution solved? can you help me?


#4

you can put the echarts.js file into the panel src ,and import it in the ctrl.js,like this image image ,finally, change the grunfile.js to build the js to dist,
hope helpful