Cant import realtive functions in the same folder.
Error:
throw new ERR_MODULE_NOT_FOUND(
^
CustomError: Cannot find module '/Users/.../bot/src/events/db' imported from /Users/.../bot/src/events/createEvent.ts```
db.ts
`export const db = new KyselyAuth<Database>({})`
createEvent.ts
`import { db } from './db'`
TSConfig:
(changed it a lot in hopes itd work)
```json
{
"compilerOptions": {
"module": "ESNext",
"outDir": "build",
"rootDir": "src",
"strict": true,
"moduleResolution": "Node",
"allowSyntheticDefaultImports": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"allowJs": true,
"checkJs": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"sourceMap": true,
},
"include": ["src"],
"exclude": ["build", "node_modules"]
}```