vendredi 26 mai 2017

React-script Fabricjs jsdom conflict,

When I start test in my project below error will happen:

FAIL src/tests/App.js ● renders without crashing

TypeError: Cannot read property 'imageSmoothingEnabled' of null

  at klass._setImageSmoothing (node_modules/fabric/dist/fabric.js:6567:38)
  at klass._initStatic (node_modules/fabric/dist/fabric.js:6348:12)
  at klass.initialize (node_modules/fabric/dist/fabric.js:8611:12)
  at new klass (node_modules/fabric/dist/fabric.js:1961:23)

Actually it happens when I create a fabricjs canvas. Is it a conflict between jsdom and fabricjs???

Aucun commentaire:

Enregistrer un commentaire