grafana / tutorials

A series of tutorials for helping you make the most out of Grafana.
Apache License 2.0
111 stars 29 forks source link

yarn build fails during datasource backend plugin tutorial #93

Closed SpAndrea117 closed 3 years ago

SpAndrea117 commented 3 years ago

Hi i'm trying to follow the Build a data source backend plugin tutorial on the grafana official page, but I obtain the following error:

`>yarn install yarn install v1.22.5 [1/5] Validating package.json... [2/5] Resolving packages... [3/5] Fetching packages... warning Pattern ["@grafana/data@next"] is trying to unpack in the same destination "C:\Users\a.spampinato\AppData\Local\Yarn\Cache\v6\npm-@grafana-data-7.2.0-29ae47a1c8a331d12fa269ef900922ade829c0aa-integrity\node_modules\@grafana\data" as pattern ["@grafana/data@^7.0.0","@grafana/data@7.2.0","@grafana/data@7.2.0"]. This could result in non-deterministic behavior, skipping. info fsevents@1.2.13: The platform "win32" is incompatible with this module. info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation. info fsevents@2.1.3: The platform "win32" is incompatible with this module. info "fsevents@2.1.3" is an optional dependency and failed compatibility check. Excluding it from installation. [4/5] Linking dependencies... warning "@grafana/toolkit > @grafana/eslint-config@2.0.0" has incorrect peer dependency "prettier@^2.0.5". warning "@grafana/toolkit > @grafana/eslint-config@2.0.0" has incorrect peer dependency "typescript@^3.9.6". warning "@grafana/toolkit > @grafana/ui > @grafana/slate-react > slate-react-placeholder@0.2.9" has unmet peer dependency "slate-react@>=0.22.0". [5/5] Building fresh packages... Done in 168.40s.

C:\Users\a.spampinato\Desktop\grafana-plugins\my-plugin-be>yarn build yarn run v1.22.5 $ grafana-toolkit plugin:build √ Preparing √ Linting

I've also find some post asking help for the same problem but I was not able to find out the solution to fix it. Any help would be appreciated.

I'm adding the link of these posts, maybe they can be helpful.

https://github.com/grafana/grafana/issues/23377, https://github.com/grafana/grafana/pull/23577, https://github.com/melchiormoulin/grafana/commit/2bd06b4af2d8c2fe74640395b01b46946c62fd5f

marcusolsson commented 3 years ago

I'm sorry that you weren't able to get it working. Could you try using npx @grafana/toolkit plugin:create my-plugin instead (remove @next)?

submersibletoaster commented 3 years ago

Came here with the same issue and tried using the toolkit without @next. Unfortunately without success. Errors seem similar. yarn-build-out-redacted.txt

marcusolsson commented 3 years ago

Could you confirm if you're still having issues with this?

matthewhelmke commented 3 years ago

Closing as this has gone more than six months with no activity.