Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mqtt-datasource on Raspberry Pi #35

Open
ldrssantos opened this issue Jan 29, 2022 · 1 comment
Open

mqtt-datasource on Raspberry Pi #35

ldrssantos opened this issue Jan 29, 2022 · 1 comment

Comments

@ldrssantos
Copy link

Hi, tolzhabayev!

I tried to install the MQTT plugin on my Grafana server installed on the Raspberry Pi and I had the following issue when running the "yarn build"
Could you please help me with it?

yarn run v1.22.17
$ rm -rf dist && grafana-toolkit plugin:build && mage build:backend
Using Node.js v14.18.2
Using @grafana/toolkit v8.0.0-beta.3
✔ Preparing
✔ Linting
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db

Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating
ts-jest[config] (WARN) The option tsConfig is deprecated and will be removed in ts-jest 27, use tsconfig instead
PASS src/handleEvent.test.ts

Test Suites: 1 passed, 1 total
Tests: 2 passed, 2 total
Snapshots: 2 passed, 2 total
Time: 6.285 s
Ran all test suites with tests matching "".
✔ Running tests
⠙ Compiling... Starting type checking service...
Using 1 worker with 2048MB memory limit
⠇ Compiling...
Hash: 6b5a018b08c2ac55e195
Version: webpack 4.41.5
Time: 37912ms
Built at: 01/29/2022 2:00:56 PM
Asset Size Chunks Chunk Names
CHANGELOG.md 53 bytes [emitted]
LICENSE 11.1 KiB [emitted]
EADME.md 3.69 KiB [emitted]
img/mqtt.svg 1.31 KiB [emitted]
module.js 3.8 KiB 0 [emitted] module
module.js.LICENSE.txt 808 bytes [emitted]
module.js.map 24 KiB 0 [emitted] [dev] module
plugin.json 1000 bytes [emitted]
Entrypoint module = module.js module.js.map
[0] external "react" 42 bytes {0} [built]
[1] external "@grafana/ui" 42 bytes {0} [built]
[2] external "lodash" 42 bytes {0} [built]
[3] external "@grafana/data" 42 bytes {0} [built]
[4] external "@grafana/runtime" 42 bytes {0} [built]
[5] ./module.ts + 5 modules 14.5 KiB {0} [built]
| ./module.ts 296 bytes [built]
| ./datasource.ts 352 bytes [built]
| ./ConfigEditor.tsx 2.78 KiB [built]
| ./QueryEditor.tsx 658 bytes [built]
| ../node_modules/tslib/tslib.es6.js 10 KiB [built]
| ./handleEvent.ts 395 bytes [built]

✔ Compiling...
/bin/sh: 1: mage: not found
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

@koleto
Copy link

koleto commented Feb 4, 2022

You need to install mage: https://magefile.org

Prerequisites: https://grafana.com/tutorials/build-a-streaming-data-source-plugin/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants