Element interface conflict in @shopify/oxygen-workers-types package #1156
-
I'm encountering a Typescript types conflict with the A component in our React-based UI library uses a hook that takes a parameter of a ref to a DOM element, specifically anything that extends the global Element interface from What I've found is that within the context of the Remix app, the Element interface from I've put together a StackBlitz to reproduce the error in a clean environment: https://stackblitz.com/edit/remix-run-remix-bc3yso?file=app%2Froutes%2F_index.tsx The Remix app setup follow the examples where that types package is referenced in tsconfig.json and in remix.env.d.ts. Removing those references causes the error to go away. A workaround I have put in place for the moment is to instead utilize A few questions:
Thanks for any help that you can provide. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi Matt, thanks for the detailed issue description. We are looking into it will report back ASAP |
Beta Was this translation helpful? Give feedback.
-
This has been resolved in v3.17.3, released today. Thanks Shopify team! |
Beta Was this translation helpful? Give feedback.
This has been resolved in v3.17.3, released today. Thanks Shopify team!