Fork me on GitHub
#reagent
<
2017-10-15
>
dimovich16:10:33

trying to use react-fabricjs, and getting some errors

dimovich16:10:09

Cannot read property 'getHostNode' of null and Cannot read property 'apply' of undefined

dimovich16:10:33

consuming it via :npm-deps

dimovich16:10:25

or maybe someone has some experience with cljsjs.fabric and reagent

pesterhazy16:10:55

@dimovich Cannot read property 'getHostNode' of null is a typical error that occurs after other exceptions are thrown in a react component - probably not the root cause

pesterhazy16:10:22

@dimovich the other problem may well be due to the use of npm-deps. Have you checked that window.fabric.Canvas exists? The invocation seems correct

dimovich17:10:50

@pesterhazy window.fabric.Canvas is an #object[klass]

dimovich16:10:29

@pesterhazy in the end seems the documentation on npm is missleading https://www.npmjs.com/package/react-fabricjs

dimovich16:10:47

it's just a typical JS module, no real react components

pesterhazy16:10:06

why is it called react-fabricjs then? weird!