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

TypeScript error in editor when configuring Drizzle plugin in knip.config.ts #829

Closed
6 tasks done
jjjjonathan opened this issue Nov 10, 2024 · 3 comments
Closed
6 tasks done
Labels
bug Something isn't working

Comments

@jjjjonathan
Copy link

Prerequisites

Reproduction url

https://stackblitz.com/edit/github-hyliy9?file=knip.config.ts

Reproduction access

  • I've made sure the reproduction is publicly accessible

Description of the issue

When using a typed config file, the type for the Drizzle plugin does not seem to exist:

Object literal may only specify known properties, and 'drizzle' does not exist in type '{ exclude?: ("dependencies" | "exports" | "files" | "devDependencies" | "optionalPeerDependencies" | "unlisted" | "binaries" | "unresolved" | "types" | "nsExports" | "nsTypes" | "duplicates" | "enumMembers" | "classMembers")[] | undefined; ... 98 more ...; workspaces?: Record<...> | undefined; }'.ts(2353)

The plugin itself works fine, though, I only noticed an issue with the types.

@jjjjonathan jjjjonathan added the bug Something isn't working label Nov 10, 2024
@webpro webpro closed this as completed in 9d3367b Nov 11, 2024
@webpro
Copy link
Collaborator

webpro commented Nov 11, 2024

🚀 This issue has been resolved in v5.36.6. See Release 5.36.6 for release notes.

Using Knip in a commercial project? Please consider becoming a sponsor.

@webpro
Copy link
Collaborator

webpro commented Nov 11, 2024

Thanks for the report @jjjjonathan! Added plugin schema to the generation script, so shouldn't happen again.

@jjjjonathan
Copy link
Author

@webpro thanks for resolving so quickly!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants