drizzle-team / drizzle-team/drizzle-orm
[BUG]: Drizzle kit does not report when schema is missing from the given location in drizzle.config.ts
- Dominant language
- TypeScript
- Stars
- 35.8k
- Forks
- 1.6k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 4
Description
### What version of `drizzle-orm` are you using?
0.28.6
### What version of `drizzle-kit` are you using?
0.19.13
### Describe the Bug
I moved `schema.ts` to somewhere else, as a part of cleaning my repo, but forgot to update the location in `drizzle.config.ts`.
After some days, when I launched Drizzle Studio, it did not display any tables, and it was hard to figure out what's actually going wrong.
Here's my command from package.json:
```json
"db:studio": "drizzle-kit studio --config=drizzle.config.ts"
```
### Expected behavior
Drizzle-kit should ideally throw an error when the schema file is not found at the defined location in `drizzle.config.ts` to make it easier for users to catch this issue.
### Environment & setup
My platform:
Node version: v20.6.1
pnpm version: 8.8.0
OS: Fedora 38 x64
CPU: AMD Ryzen 9 3900X
Contributor guide
Assessment
This issue has not been assessed yet.