Hello everybody,
did anybody tried to use yfiles with webpack and es6?
// All yfiles modules return the yfiles namespace object
import yfiles from '../../lib/yfiles/graph-input';
import '../../lib/yfiles/graph-style-defaults';
import '../../lib/yfiles/layout-organic';
import '../../lib/yfiles/layout-misc';
import '../../lib/yfiles/graph-layout-bridge';
const graphControl = new yfiles.canvas.GraphControl.ForId('graph');
when i tried to instantiate a new graph I get the following error:
Uncaught TypeError: Cannot read property 'ForId' of undefined(…)
I digged around a little bit and I noticed that yfiles.canvas.GraphControl in undefined.
Do you have any idea why this is happening? Or a webpack example that I can use?
Thank you