grafana / grafana-app-sdk

An SDK for developing apps for grafana using kubernetes-like storage and operators
Apache License 2.0
45 stars 8 forks source link

make build/plugin-frontend from SDK tutorial is failing #363

Open Aenas11 opened 2 months ago

Aenas11 commented 2 months ago

I'm following app SDK tutorial and on step 5 (Local Deployment) make build/plugin-frontend is failing with:

YN0000: Done with warnings in 0s 791ms
[webpack-cli] TypeError: Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at exports.prepare (/workspaces/TSE/plugin/.yarn/cache/rechoir-npm-0.8.0-fb660b3bc8-ad3caed8af.zip/node_modules/rechoir/index.js:21:14)
    at loadConfigByPath (/workspaces/TSE/plugin/.yarn/__virtual__/webpack-cli-virtual-cc63e22c35/0/cache/webpack-cli-npm-5.1.4-7be5b53b38-3a4ad0d034.zip/node_modules/webpack-cli/lib/webpack-cli.js:1377:29)
    at /workspaces/TSE/plugin/.yarn/__virtual__/webpack-cli-virtual-cc63e22c35/0/cache/webpack-cli-npm-5.1.4-7be5b53b38-3a4ad0d034.zip/node_modules/webpack-cli/lib/webpack-cli.js:1460:88
    at Array.map (<anonymous>)
    at WebpackCLI.loadConfig (/workspaces/TSE/plugin/.yarn/__virtual__/webpack-cli-virtual-cc63e22c35/0/cache/webpack-cli-npm-5.1.4-7be5b53b38-3a4ad0d034.zip/node_modules/webpack-cli/lib/webpack-cli.js:1460:68)
    at WebpackCLI.createCompiler (/workspaces/TSE/plugin/.yarn/__virtual__/webpack-cli-virtual-cc63e22c35/0/cache/webpack-cli-npm-5.1.4-7be5b53b38-3a4ad0d034.zip/node_modules/webpack-cli/lib/webpack-cli.js:1781:33)
    at WebpackCLI.runWebpack (/workspaces/TSE/plugin/.yarn/__virtual__/webpack-cli-virtual-cc63e22c35/0/cache/webpack-cli-npm-5.1.4-7be5b53b38-3a4ad0d034.zip/node_modules/webpack-cli/lib/webpack-cli.js:1877:31)
    at Command.<anonymous> (/workspaces/TSE/plugin/.yarn/__virtual__/webpack-cli-virtual-cc63e22c35/0/cache/webpack-cli-npm-5.1.4-7be5b53b38-3a4ad0d034.zip/node_modules/webpack-cli/lib/webpack-cli.js:944:32)
    at Command.listener [as _actionHandler] (/workspaces/TSE/plugin/.yarn/cache/commander-npm-10.0.1-f17613b72b-436901d64a.zip/node_modules/commander/lib/command.js:482:17)
make: *** [Makefile:38: build/plugin-frontend] Error 2

I haven't added anything to the source code yet, just whatever was in the tutorial

IfSentient commented 2 months ago

Hi @Aenas11, I'm unable to replicate this myself, can you provide me with the following information?

Once I have that information, I can try replicating the issue with the same set-up that you have.