Problem starting with Developer guide

Hello.
Need help in starting to suggest extention of Elasticsearch plugin.

I have been following Developer guide instructions and have problems with both front and back startup.

Here is my environment:

  • Windows 11
  • WSL2
  • Ubuntu 22.04.5 LTS
  • Git 2.34.1
  • NodeJS 23.8.0
  • Go 1.23.7

My steps

~$ mkdir web
~$ cd web
~/web$ git clone https://github.com/grafana/grafana.git
~/web$ cd grafana
~/web/grafana$ yarn install --immutable
~/web/grafana$ yarn start
... lots of errors ...
~/web/grafana$ make run
... stuck on "go run..." ...

Front
The same errors for all plugins:

[webpack-cli] Failed to load '/home/user/web/grafana/public/app/plugins/datasource/parca/webpack.config.ts' config
[webpack-cli] Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/home/user/web/grafana/node_modules/@grafana/plugin-configs/webpack.config' imported from /home/user/web/grafana/public/app/plugins/datasource/parca/webpack.config.ts

Back
There is no “error” message. Not sure, but I think it’s not the last message to be seen when starting web server:

generate go files
go run  ./pkg/build/wire/cmd/wire/main.go gen -tags "oss" ./pkg/server

What am I missing?

1 Like

Try using nodejs 22 LTS. remove all node_modules, install dependencies again and try yarn start again.

it will also help if you share some of those lots of errors to see what’s failing.

stuck on go run is possibly not stuck but compiling code. This might take a while. unless you see an actual error, give it time