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

Unable to build custom plugin on ubuntu #21846

Closed
WaleedNaveed opened this issue Jan 30, 2020 · 1 comment
Closed

Unable to build custom plugin on ubuntu #21846

WaleedNaveed opened this issue Jan 30, 2020 · 1 comment

Comments

@WaleedNaveed
Copy link

I am developing a grafana plugin using react. I have used syncfusion library in my plugin. The plugin works fine on windows, but when i build it on ubuntu, i get the following error.

grafana-toolkit plugin:build

✔ Cleaning
✔ Preparing
✔ Prettier check
⠋ Linting

Trace: TypeError: f.getRuleSeverity is not a function
at /aedata/ae/grafana/plugins/simple-react-panel/node_modules/@grafana/toolkit/src/cli/tasks/plugin.build.js:179:44
at Array.forEach ()
at /aedata/ae/grafana/plugins/simple-react-panel/node_modules/@grafana/toolkit/src/cli/tasks/plugin.build.js:177:34
at step (/aedata/ae/grafana/plugins/simple-react-panel/node_modules/tslib/tslib.js:136:27)
at Object.next (/aedata/ae/grafana/plugins/simple-react-panel/node_modules/tslib/tslib.js:117:57)
at fulfilled (/aedata/ae/grafana/plugins/simple-react-panel/node_modules/tslib/tslib.js:107:62)
at /aedata/ae/grafana/plugins/simple-react-panel/node_modules/@grafana/toolkit/src/cli/utils/useSpinner.js:24:29
at step (/aedata/ae/grafana/plugins/simple-react-panel/node_modules/tslib/tslib.js:136:27)
at Object.throw (/aedata/ae/grafana/plugins/simple-react-panel/node_modules/tslib/tslib.js:117:57)
at rejected (/aedata/ae/grafana/plugins/simple-react-panel/node_modules/tslib/tslib.js:108:69)
✖ f.getRuleSeverity is not a function
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! simple-react-panel@1.0.0 build: grafana-toolkit plugin:build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the simple-react-panel@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-01-30T11_22_15_197Z-debug.log

@dprokop
Copy link
Member

dprokop commented Jan 31, 2020

@WaleedNaveed thanks for reporting this. Actually, this issue was fixed yesterday with this PR #21849

We are about to release Grafana 6.6.1 next week. Until then, please use canary version of @grafana/toolkit. Sorry for troubles!

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

No branches or pull requests

2 participants