#NestJs + Fastify. Erros on build

11 messages · Page 1 of 1 (latest)

pearl sphinx
#

Hello, good evening.
I'm getting so many errors when run build
Can u help me ?
I'm using
"@wooden rover/cli": "^10.2.0",
"typescript": "^4.9.5"

pearl sphinx
#

why the nest ignores tsconfig.json ?

#

i'm saying to excludes node_modules...

honest horizon
#

Show your tsconfig.json and tsconfig.build.json

pearl sphinx
#
{
  "compilerOptions": {
    "module": "commonjs",
    "declaration": true,
    "removeComments": true,
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "allowSyntheticDefaultImports": true,
    "target": "ES2020",
    "sourceMap": true,
    "outDir": "./dist",
    "baseUrl": "./",
    "incremental": true,
    "skipLibCheck": true,
    "strictNullChecks": false,
    "noImplicitAny": false,
    "strictBindCallApply": false,
    "forceConsistentCasingInFileNames": false,
    "noFallthroughCasesInSwitch": false,
    "resolveJsonModule": true
  }
}
#
{
  "extends": "./tsconfig.json",
  "exclude": ["node_modules", "test", "dist", "**/*spec.ts"]
}

#
{
  "scripts": {
    "prebuild": "rimraf dist",
    "build": "nest build",
    "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
    "start": "nest start",
    "start:dev": "nest start --watch",
    "start:debug": "nest start --debug --watch",
    "start:prod": "node dist/main",
    "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
    "test": "jest",
    "test:watch": "jest --watch",
    "test:cov": "jest --coverage",
    "test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
    "test:e2e": "jest --forceExit --detectOpenHandles --config ./test/jest-e2e.json",
    "doc": "npx @compodoc/compodoc -p tsconfig.json",
    "doc:serve": "npm run doc && npx @compodoc/compodoc -s",
    "sonar-scanner": "node node_modules/sonarqube-scanner/dist/bin/sonar-scanner"
  },
  "dependencies": {
    "@fastify/compress": "6.0.0",
    "@fastify/helmet": "^10.0.0",
    "@fastify/static": "^6.0.0",
    "@fastify/swagger": "^8.5.1",
    "@nestjs/axios": "3.0.0",
    "@nestjs/common": "^10.0.0",
    "@nestjs/config": "^3.1.1",
    "@nestjs/core": "^10.2.7",
    "@nestjs/microservices": "^10.2.7",
    "@nestjs/platform-fastify": "^10.2.7",
    "@nestjs/swagger": "^7.1.14",
    "@nestjs/terminus": "^10.1.1",
    "@newrelic/winston-enricher": "^1.0.0",
    "class-transformer": "^0.5.0",
    "class-validator": "^0.14.0",
    "date-fns": "^2.21.3",
    "fastify": "^4.23.2",
    "lodash": "^4.17.20",
    "nestjs-sap-rfc": "^3.0.27",
    "newrelic": "^7.5.2",
    "reflect-metadata": "^0.1.13",
    "rimraf": "^3.0.2",
    "rxjs": "^7.1.0",
    "sapnwrfc": "^0.2.0",
    "winston": "^3.3.3"
  }
}
#
"devDependencies": {
    "@commitlint/cli": "^18.1.0",
    "@commitlint/config-conventional": "^16.2.1",
    "@compodoc/compodoc": "^1.1.19",
    "@nestjs/cli": "^10.2.0",
    "@nestjs/schematics": "^10.0.2",
    "@nestjs/testing": "^10.2.7",
    "@types/cache-manager": "^3.4.3",
    "@types/cli-color": "^2.0.2",
    "@types/jest": "^29.5.8",
    "@types/lodash": "^4.14.180",
    "@types/newrelic": "^7.0.3",
    "@types/node": "^18.18.9",
    "@types/supertest": "^2.0.11",
    "@typescript-eslint/eslint-plugin": "^5.15.0",
    "@typescript-eslint/parser": "^5.15.0",
    "commitizen": "^4.2.4",
    "eslint": "^8.11.0",
    "eslint-config-prettier": "^8.5.0",
    "eslint-plugin-prettier": "^4.0.0",
    "husky": "^7.0.4",
    "is-ci": "^3.0.1",
    "jest": "^29.7.0",
    "lint-staged": "^12.3.5",
    "prettier": "^2.5.1",
    "sonarqube-scanner": "^2.8.1",
    "source-map-support": "^0.5.21",
    "supertest": "^6.2.2",
    "ts-jest": "^29.1.0",
    "ts-loader": "^9.2.8",
    "ts-node": "^10.7.0",
    "tsconfig-paths": "^3.14.0",
    "typescript": "^4.9.5"
  }
#

When i'm run: *** npm run build***, getting that errors

honest horizon
#

That's interesting. Got a reproduction we can run?

pearl sphinx