Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Use tailwind-merge on Oxygen runtime.

Use tailwind-merge on Oxygen runtime.

CSilvas
Shopify Partner
3 0 1

I'm trying to use the tailwind-merge package with tailwindcss in a hydrogen environment on the oxygen runtime. Everything works except when I start trying to configure tailwind merge to match my tailwind config. Once I try to configure tailwind merge I start to get a missing package error for a package called "tty". It says the package exists on node but not the oxygen runtime. I tried to use the remix "serverNodeBuiltinsPolyfill" and "browserNodeBuiltinsPolyfill" but that just pushes the problem one step down the line and I get a new error.

 

This must be a common setup since Hydrogen comes with a tailwindcss template... Has anyone been able to successfully use tailwind-merge with a custom configuration? How are you supposed to effectively polyfill for node packages in hydrogen?

 

Any help would be great!

Replies 0 (0)