You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pixi.js works great in SSR environments like Gatsby.
But as soon as I add import { SpriteH } from 'pixi-heaven to my project SSR breaks with the following error, and I can't seem to get around it even though the line of code I have that uses SpriteH is not called on the server side. I assume the library initializes immediately prior to my code execution.
I'd like to use pixi-heaven for the performance benefits of alpha sprite masking.
Pixi.js works great in SSR environments like Gatsby.
But as soon as I add
import { SpriteH } from 'pixi-heaven
to my project SSR breaks with the following error, and I can't seem to get around it even though the line of code I have that uses SpriteH is not called on the server side. I assume the library initializes immediately prior to my code execution.I'd like to use pixi-heaven for the performance benefits of alpha sprite masking.
I also tried dynamic imports but then I get a different problem that likely requires some re-initialization of the pixi library possibly?:
The text was updated successfully, but these errors were encountered: