Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown utility "class-name" #10

Open
synalice opened this issue Jul 6, 2022 · 0 comments
Open

Unknown utility "class-name" #10

synalice opened this issue Jul 6, 2022 · 0 comments

Comments

@synalice
Copy link

synalice commented Jul 6, 2022

To solve #9, I created this file:

// config/twind.config.ts

/** @jsx h */

/** @type {import('twind').Configuration} */

It solved the issue of autocomplete not working for the Twind, but at the same time introduced the above Unknown utillity error. Deleting this config/twind.config.ts file solves the issue, but breaks autocomplete.

For some reason, this file in my Fresh project...

// 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)

Screenshot from 2022-07-06 15-14-08

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant