Hello, I am new in Vaadin 14, I am trying to integrate Konva JS in a Vaddin 14 In-project Web Component, I install the npm package with the command npm install konva --save
, when i import the package into my web component using import Konva from 'konva';
i am getting the error in the browser console
Uncaught Error: Cannot find module 'konva?babel-target=es6'
at webpackMissingModule (konva-element.js?0b6b:1)
at eval (konva-element.js?0b6b:1)
at Module../konva/konva-element.js?babel-target=es6 (vaadin-bundle-e1f89c2a620cd3d0c19d.cache.js:1021)
at __webpack_require__ (vaadin-bundle-e1f89c2a620cd3d0c19d.cache.js:20)
at eval (generated-flow-imports.js?b518:1)
at Module.../target/frontend/generated-flow-imports.js?babel-target=es6 (vaadin-bundle-e1f89c2a620cd3d0c19d.cache.js:1009)
at __webpack_require__ (vaadin-bundle-e1f89c2a620cd3d0c19d.cache.js:20)
at vaadin-bundle-e1f89c2a620cd3d0c19d.cache.js:84
at vaadin-bundle-e1f89c2a620cd3d0c19d.cache.js:87
I download the project base from [https://vaadin.com/start/lts/project-base]
(https://vaadin.com/start/lts/project-base)
What i doing wrong?
Thanks!!!