ben-rogerson / twin.macro

๐Ÿฆนโ€โ™‚๏ธ Twin blends the magic of Tailwind with the flexibility of css-in-js (emotion, styled-components, solid-styled-components, stitches and goober) at build time.
MIT License
7.89k stars 184 forks source link

NX React - Module '"twin.macro"' has no exported member 'styled' #806

Closed rostgoat closed 1 year ago

rostgoat commented 1 year ago

Closed issue

I believe this is still an issue with NX. I followed your suggestion above but I am still facing the same issue.

Take a look at the stackblitz.

if you run npm start you will see that in libs/app/steps/ui/src/lib/steps/steps.styled.ts, I am seeing this error. Do you know why?

side note: I am using tailwind, daisyui, react, NX ๐Ÿ™

ben-rogerson commented 1 year ago

The project isnt reading the twin.d.ts file correctly. Drop a copy of the twin.d.ts file into your /apps/my-app directory and the error is gone.