"Unknown utility" TS warning on certain class names
See original GitHub issueSince migrating to Twind, I have noticed some class names throwing TS warnings.
This is by no means an exhaustive list, but I’ve noticed them on the following class names:
flex-gap-4
mx-auto
mt-auto
Screenshots:
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Tailwind CSS classes is not working in my project?
This error is due to tailwind not finding any classes to scan in what it 'thinks' is your HTML code directories.
Read more >Content Configuration - Tailwind CSS
Since Tailwind uses a very simple approach to detecting class names in your content, you may find that some classes are being generated...
Read more >isolatedModules - TSConfig Option - TypeScript
Setting the isolatedModules flag tells TypeScript to warn you if you write certain code that can't be correctly interpreted by a single-file transpilation ......
Read more >TypeScript errors and how to fix them
A list of common TypeScript errors and how to fix them.
Read more >Get a catch block error message with TypeScript - Kent C. Dodds
catch (error) { let message = 'Unknown Error' if (error instanceof ... Then we can turn this into a utility for use in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The VS-Code and the typescript plugin haven’t been updated to work with the next branch. That is still an open issue.
@bryceknz Which twind version are you using? The margin errors should be fixed in one of the latest version (currently in mobile, can not check which version).