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

Type error while running examples/drizzle without any changes (runs perfectly) #97

Open
amandesai01 opened this issue Jun 4, 2024 · 0 comments

Comments

@amandesai01
Copy link
Contributor

amandesai01 commented Jun 4, 2024

Environment

Node Version: v18.16.0
DB0: Latest
Package Manager: Yarn

Reproduction

Just

cd <repo_root>/examples/drizzle
yarn install
yarn run

Describe the bug

Getting following type error in VSCode - However, code runs properly without issues.:

Argument of type 'SQLiteTableWithColumns<{ name: "users"; schema: undefined; columns: { id: SQLiteColumn<{ name: "id"; tableName: "users"; dataType: "string"; columnType: "SQLiteNumeric"; data: string; driverParam: string; notNull: false; hasDefault: false; enumValues: undefined; baseColumn: never; }, object>; name: SQLiteColumn<...>...' is not assignable to parameter of type 'SQLiteTable<TableConfig> | Subquery<string, Record<string, unknown>> | SQLiteViewBase<string, boolean, ColumnsSelection> | SQL<...>'.
  Property '[IsDrizzleTable]' is missing in type 'SQLiteTable<{ name: "users"; schema: undefined; columns: { id: SQLiteColumn<{ name: "id"; tableName: "users"; dataType: "string"; columnType: "SQLiteNumeric"; data: string; driverParam: string; notNull: false; hasDefault: false; enumValues: undefined; baseColumn: never; }, object>; name: SQLiteColumn<...>; }; dialec...' but required in type 'SQLiteTable<TableConfig>'.ts(2345)
table.d.ts(29, 5): '[IsDrizzleTable]' is declared here.
Screenshot 2024-06-04 at 10 19 27 PM

Additional context

No response

Logs

No response

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