Error when install and build
Closed this issue ยท 10 comments
Hello! When i build i have error:
ERROR in ./module.ts
(301,27): error TS2339: Property 'yaxis' does not exist on type '{ alias: {}; }'.
ERROR in ./graph.ts
(491,29): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
ERROR in ./graph.ts
(495,17): error TS2554: Expected 1 arguments, but got 2.
And when i install:
warning @types/moment@2.13.0: This is a stub types definition for Moment (https://github.com/moment/moment). Moment provides its own type definitions, so you don't need @types/moment installed!
warning @types/perfect-scrollbar@1.3.0: This is a stub types definition for perfect-scrollbar (https://github.com/noraesae/perfect-scrollbar). perfect-scrollbar provides its own type definitions, so you don't need @types/perfect-scrollbar installed!
I see plugin, he work. But after reload page:
node -v
v9.8.0
npm -v
5.8.0
grafana-cli -v
Grafana cli version 4.6.3
Centos 7.
@deepminimal have you tried to use plugin from dist
? I just want to know if it works from dist
.
It's not about your will to use it from source.
Hi @deepminimal! According to title "Graph" in editor - you have built-in Grafana's Graph plugin running.
You should have separate "Multibar Graph Panel" in your plugins list, if you installed it correctly.
Can you, please, describe how you tried to build it step-by-step? Have you restarted your Grafana after cloning this repo?
P.S. As @jonyrock said - it's not necessary to build it. You can just clone repo in your data/plugins dir and restart Grafana. It should work that way.
Hi! @rozetko
cd /var/lib/grafana/plugins/
rm -rf grafana-multibar-graph-panel
git clone https://github.com/CorpGlory/grafana-multibar-graph-panel
systemctl restart grafana-server
@jonyrock What do you mean about "dist plugin"?
@deepminimal oh, I see. There is a problem with the latest build. I'll let you know when I fix and test it. Thanks for feedback!
@rozetko Thank you very much! When will you support Grafana V5?
@deepminimal actually, we support Grafana v5 and it is priority.
Can I ask you to follow steps from #6 (comment) once again (including plugin remove and clone)? And clear your browser's cache (ctrl+shift+R) before creating dashboard (it's important).
@rozetko It seems that everything works! Thank you so much! Tested on Grafana v4.6.3 and v5.0.3!
@deepminimal you're welcome! Thanks again for finding this bug! I can close this issue, I guess.
@deepminimal when I mentioned "dist plugin", I wanted to say somethin
cd $GRAFANA_PATH/data/plugins
git clone https://github.com/CorpGlory/grafana-multibar-graph-panel
systemctl restart grafana-server
so you use the plugin without building it. The build conuld be done in your case something like:
cd $GRAFANA_PATH/data/plugins
git clone https://github.com/CorpGlory/grafana-multibar-graph-panel
cd grafana-multibar-graph-panel
npm install
npm run build // this will remove dist folder & make it with new build
systemctl restart grafana-server