Open MuttakinHasib opened 11 months ago
I think this is due to how your TypeScript is set up - what it compiles to and how it handles imports when it does that compilation
What's your tsconfig?
tsconfig.json
{
"compilerOptions": {
"module": "commonjs",
"declaration": true,
"removeComments": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"allowSyntheticDefaultImports": true,
"target": "ES2021",
"sourceMap": true,
"outDir": "./dist",
"baseUrl": "./",
"incremental": true,
"skipLibCheck": true,
"strictNullChecks": false,
"noImplicitAny": false,
"strictBindCallApply": false,
"forceConsistentCasingInFileNames": false,
"noFallthroughCasesInSwitch": false,
"paths": {
"@app/common": [
"libs/common/src"
],
"@app/common/*": [
"libs/common/src/*"
],
"@app/mail": [
"libs/mail/src"
],
"@app/mail/*": [
"libs/mail/src/*"
],
"@app/types": [
"libs/types/src"
],
"@app/types/*": [
"libs/types/src/*"
]
}
}
}
Assalamualaikom, @voxpelli
It's throwing
TypeError: (0 , connect_pg_simple_1.default) is not a function
Nestjs: v10 Nodejs: v20.10.0 Postgres: v16
main.ts
package.json