How can I use a frontend library that uses the DOM or canvas to work with Hydrogen? #2705
Unanswered
CaptainJeff
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to use this library PixiJs https://pixijs.com/ with my hydrogen app on the homepage but i'm getting some compilation issues. Can someone point me in the right direction? Here is the error i'm getting
I'm guessing its caused by the fact its SSR but I can't seem to figure out how to get it work. I tried adding a .client.tsx extension an including
"use client";
in the component but still can't get anything working. Any help would be appreciatedNote: This is happening on a new Hydrogen app with just pixijs rendered on the homepage. Took sample code from pixi's website
Beta Was this translation helpful? Give feedback.
All reactions