Johanne
DTDrizzle Team
•Created by Johanne on 3/4/2024 in #help
How can I get imports with file extensions?
I have an azure function that runs on node, and use Drizzle for a postgres database. The node/typescript setup we have require explicit file endings, and I have not been able to find any way of turning it off. How can I configure drizzle-orm to use the same import setup as the rest of our application? We use
drizzle-orm
and drizzle-kit
.
Our current setup is:
tsconfig.json:
drizzle.config.ts:
package.json:
This is an example of a schema with an import that fails when we run drizzle-kit generate:pg
:
The error we get is:
If I remove .js
from the import, the migration runs, but our azure function does not. Can anyone help me set it up with consistent imports? It does not matter to me if its with or without extensions, I just need node and drizzle to use the same.1 replies