I'm trying to init canvas in vuejs component. Here is an example: https://jsfiddle.net/eywraw8t/55338/
I init canvas in mounted hook, which means the DOM is available. Also I can see that fabric stars doing its job by making lower-canvas div, but then it throws:
this.lowerCanvasEl.getContext is not a function
Couldn't figure out what's the problem. I already use fabric in my project, and never got such error.