Open alexjidras opened 1 year ago
I'm getting this in vitest jsdom tests. All the tests that import a file that contains a tw component fail with this error, regardless of tw(xxx) or tw.xxx.
@MathiasGilson changing package.json's "main" to .esm solves the problem.
As a temporary fix i aliased the module.
This also helped me make tailwind-styled-components work when using Astro (astro build)
astro build
I'm getting this in vitest jsdom tests. All the tests that import a file that contains a tw component fail with this error, regardless of tw(xxx) or tw.xxx.