XWind: Cannot read property 'theme' of undefined for nextjs 11
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
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
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.
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.
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 did you find a good solution for this ?