Unknown utility "class-name"
See original GitHub issueFor some reason, this…
// components/SidebarIcon.tsx
/** @jsx h */
import { h } from "preact";
export function SidebarIcon(props: {iconName: string}) {
return (
<div className="sidebar-icon">
{props.iconName}
</div>
);
}
…gives me this error from TypeScript in VSCode:
Unknown utility "sidebar-icon" ts(-2020)
I have a feeling that might be caused by Twind because if I use one of its classes — everything is fine. Am I not allowed to create my own classes if I use Twind?
Issue Analytics
- State:
- Created a year ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Custom classnames "unknown or invalid utility" #121 - GitHub
"test" unknown or invalid utility. I created my App with expo wich seems to use this version of react native "react-native": "0.64.3"
Read more >Unknown class 'name' - java - Stack Overflow
1 Answer 1 ; MainActivity extends ; protected void ; super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); final ; = ...
Read more >Adding Custom Styles - Tailwind CSS
Best practices for adding your own custom styles to Tailwind.
Read more >Utility API · Bootstrap v5.0
The utility API is a Sass-based tool to generate utility classes. ... List of values, or a map if you don't want the...
Read more >ClassName (SpotBugs 3.1.5 API) - javadoc.io
public abstract class ClassName extends java.lang.Object. Utility methods for working with class names. Author: David Hovemeyer ...
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
This seems like something you’d want to report to the twind folks.
I understood the source, but not the reason of the issue.
To solve the https://github.com/denoland/fresh/issues/425, I created this file:
It solved the issue of autocomplete not working for the Twind, but at the same time introduced the above
Unknown utillity
error. Deleting thisconfig/twind.config.ts
file solves the issue, but breaks autocomplete.