grafana / grafana-plugin-examples

189 stars 53 forks source link

Problem Running examples/datasource-basic #170

Closed haeferer closed 1 year ago

haeferer commented 1 year ago

Hi,

first of all, this is a very cool projekt. I've tried the basic examples for a datasource plugin, but it seems the code is not working.

My findings:

Current pipeline seems to not compile the ts-files into the dist directory (grafana Webseite answers plugin with 404 - module.js not found)

Maybe there are some changes to the BuildPipeline

If somebody can give me a hint according the pipeline i can try to fix it.

(PS : it does not work with npm an yarn)

Thx for your great work

Andreas

pop1989bb commented 1 year ago

Hi, I can confirm. I tried different ways to get the examples working. At the end I was able to have "apparently" a compiled plugin but then grafana only displayed the message Unable to dynamically transpile ES module System.config({ transpile: 'transpile-module'})

academo commented 1 year ago

Hi @haeferer and @pop1989bb thanks for your report.

I tested the basic datasource example and it is working just as expected. Things to keep in consideration: