drizzle-orm icon indicating copy to clipboard operation
drizzle-orm copied to clipboard

[BUG]: Multiple variables with the same name generated after running the introspect command

Open pedrokarim opened this issue 2 years ago • 0 comments

What version of drizzle-orm are you using?

0.34.1

What version of drizzle-kit are you using?

0.25.0

Describe the Bug

I'm encountering an error while generating the drizzle/schema.ts file with Drizzle Kit. The error seems to stem from multiple definitions of the name role, which is preventing the compilation.

Observe the compilation error: 2024-10-10_16-20

2024-10-10_16-21

2024-10-10_16-22

Run the following command: bun with-env bun x drizzle-kit introspect --config=drizzle/config.ts

Expected behavior

It must not generate variables with the same names in the global context because NO !

Environment & setup

No response

pedrokarim avatar Oct 10 '24 14:10 pedrokarim