xwind icon indicating copy to clipboard operation
xwind copied to clipboard

XWind: Cannot read property 'theme' of undefined for nextjs 11

Open GZLiew opened this issue 4 years ago • 8 comments

Reproducible demo: https://github.com/vercel/next.js/tree/canary/examples/with-tailwindcss-emotion

Hi when I tried Xwind with the latest version of NextJs I got the error

Cannot read property 'theme' of undefined

GZLiew avatar Aug 19 '21 04:08 GZLiew

I'm encountering the same issue while trying to deploy this microservices example auction site: https://github.com/JarrodMalkovic/auction-website

Specifically the front-end module fails to render the homepage with: [frontend] MacroError: /app/src/pages/_app.tsx: TypeError: xwind/macro - Cannot read property 'theme' of undefined

tigwyk avatar Sep 18 '21 22:09 tigwyk

Downgrading Tailwind to 2.1.4 worked for me. So there must be something introduced between 2.1.4 and 2.2.16 that is breaking.

IngoVals avatar Oct 01 '21 14:10 IngoVals

Downgrading Tailwind to 2.1.4 worked for me. So there must be something introduced between 2.1.4 and 2.2.16 that is breaking.

Thanks, man! I tried everything and no good thing happened, this one solved my issue.

movahedan avatar Nov 06 '21 06:11 movahedan

I'm encountering the same issue while trying to deploy this microservices example auction site: https://github.com/JarrodMalkovic/auction-website

Specifically the front-end module fails to render the homepage with: [frontend] MacroError: /app/src/pages/_app.tsx: TypeError: xwind/macro - Cannot read property 'theme' of undefined

@IngoVals do you have any suggestion for this error ? I tried to upgrade and downgrade the version of Tailwind library and I had the same error.

ramcics avatar Aug 15 '22 22:08 ramcics

@ramcics did you find a good solution for this ?

numyalai avatar Jul 21 '23 00:07 numyalai