Incompatibility of @pixi/node with @pixi/extract 7.2.4
@pixi/extract 7.2.4 uses ImageData (introduced in commit 242eac):
https://github.com/pixijs/pixijs/blob/v7.2.4/packages/extract/src/Extract.ts#L153
We need to polyfill this object correctly to the ImageData provided by node-canvas.
This bug is similar to #4 because they are both due to not polyfilling objects from node-canvas correctly in @pixi/node.
Yes, extract doesn't work. Use the canvas directly. e.g., app.renderer.view.toDataUrl('image/png'). I updated the hello world to not use extract. Will likely remove extract plugin.
No need to remove that plugin, though. Wouldn't it be enough to modify that plugin so that it uses ImageData from node-canvas in Node.js environment?