Pixi.js breaks Deno
I'm trying to import Pixi in a Fresh island:
This results in an error:
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>
);
}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')error: Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'process')