I'm trying to include canvg library by require command inside my plugin controller but on kibana startup log shows me an error like the one in the title and application do not start.
Which is the suggested way to solve this issue?
There is another way to include external library then the one with require command?
Looks like canvg on npm is not the same as https://github.com/canvg/canvg. You will need to either install this module using npm's support for github:
npm install canvg/canvg
or download it to your plugin source directory (along with it's dependencies).
yes installing canvg/canvg from npm solve the issue.
But I've always problems when adding other external libraries.
Maybe I'm to noob with webpack, is there a place to study how to approach with external libraries inside kibana?
Thnak you so much
There is a little information available here: https://www.elastic.co/guide/en/kibana/current/development-dependencies.html
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.