PixelP
Denoβ€’3y agoβ€’
3 replies
Pixel

Pixi.js breaks Deno

I'm trying to import Pixi in a Fresh island:

import { Sprite, Stage } from "npm:@pixi/react@7.1.0";

export function Game() {
  return (
    <Stage>
      <Sprite
        image="https://pixijs.io/pixi-react/img/bunny.png"
        x={400}
        y={270}
        anchor={{ x: 0.5, y: 0.5 }}
      />
    </Stage>
  );
}


This results in an error:
error: Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'process')
Was this page helpful?