question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Unknown utility" TS warning on certain class names

See original GitHub issue

Since 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:

image image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
sastancommented, Mar 16, 2022

The VS-Code and the typescript plugin haven’t been updated to work with the next branch. That is still an open issue.

1reaction
sastancommented, Apr 6, 2021

@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).

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found