Closed rolanday closed 9 months ago
P.S. Should have noted that the transform itself is working fine. Issue is it's breaking prettier. Thanks for this btw! I'm coming back to tw from unocss, which has official support for iconify and it would be really sad to go back to including icons the old-fashioned way. You might want to point out in the README.md
that the VS Code Iconify IntelliSense plug-in written by unocss creator Anthony Fu works well with this transform since it follows the same icon specifier notation: https://marketplace.visualstudio.com/items?itemName=antfu.iconify
I noticed that the previous fix may only work if the tailwind configuration uses cjs
:tada: This issue has been resolved in version 1.3.2 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Ty! That explains. I had working and then changed my twconfig to .ts, but didn't make the connection. Appreciate the fast turnaround!!
re: https://github.com/egoist/tailwindcss-icons/issues/16
Hi, this (^^) issue was closed but I'm getting the same error, running v1.2.0. Was working for a bit after some initial trouble getting transform to work, but then started seeing same error again though I didn't change my config (i.e., sometimes it works, sometimes it doesn't). Even installed the 50MB @iconify/json, and still no luck.
prettier error:
package.json:
tailwind.config.ts
prettier.config.cjs
System Info