Closed cogor closed 3 months ago
This doesn't seem to be an issue of this module. Your problem seems to come from satori
as clearly stated in the logs and your comments.
Satori doesn't support all of Tailwind's options but if you need to use arbitrary values to round a border, you'll need to remove the calc()
function from the class name (eg. rounded-[6rem+4px]
).
Please note, your class would probably be invalid because you're trying to add undefined + 4px
. Try adding your template to satori's playground if you're having issues with other classes. It should log the errors as warnings on the console: https://og-playground.vercel.app/
Many thanks for the insight @ hacknug ❤️
and thanks for opening an issue @cogor - I think some corrections in the Tailwind installation in ^6.12 exposed an underlying code that may have been problematic with proper use, so in this case it seems to be breaking satori
. I think you'll need to share a reproduction of the usage where this may be being caused, so please feel free to investigate in the playground linked and continue discussion in this thread (will reopen if this really is an issue in this module).
Environment
Build Modules: -
Reproduction
No response
Describe the bug
After upgrade to 6.12.1 I can't build app
Additional context
Satori(used in og image and nuxt/seo) can't get tailwind config and variables, I store variables in ~/assets/css/tailwind.css
Logs