'TypeError: Image or Canvas expected' when importing node-canvas in different modules · Issue #487 · Automattic/node-canvas
As previously reported at #338 (comment), when someone tries to use canvas on two different modules, it breaks. For example, if in one module we have: var Canvas = require('canvas') , Image = Canva...