Closed hwooo closed 1 year ago
In .pnp.cjs file, package location of @nestjs/core is .yarn/unplugged which added to .gitignore file. So if I tried to yarn pnp zero install (please read my buildspec.yml), AWS CodeBuild fails because @nestjs/core module is not detected.
.pnp.cjs
@nestjs/core
.yarn/unplugged
buildspec.yml
https://stackblitz.com/edit/nestjs-typescript-starter-ugx3j9?file=buildspec.yml
@nestjs/core should be loaded from .yarn/cache
.yarn/cache
No response
9.3.9
{ "name": "test", "version": "0.0.1", "description": "", "author": "", "private": true, "license": "UNLICENSED", "scripts": { "prebuild": "rimraf dist", "build": "nest build", "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"", "start": "nest start", "start:dev": "rm -rf dist && nest start --watch", "start:windev": "shx rm -rf dist && nest start --watch", "start:rebuild": "rm -rf dist && yarn run build && yarn run start:dev", "start:debug": "nest start --debug --watch", "start:prod": "node src/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 jest --runInBand", "test:e2e": "jest --watchAll --detectOpenHandles --config ./test/jest-e2e.config.ts", "deploy": "yarn run build && eb deploy", "migrate:create": "typeorm migration:create -n duogameV2-migrated", "migrate:run": "ts-node -r tsconfig-paths/register typeorm migration:run", "migrate:revert": "ts-node -r tsconfig-paths/register typeorm migration:revert" }, "dependencies": { "@nestjs/common": "^9.3.9", "@nestjs/config": "^2.3.1", "@nestjs/core": "^9.3.9", "@nestjs/jwt": "^10.0.2", "@nestjs/passport": "^9.0.3", "@nestjs/platform-express": "^9.3.9", "@nestjs/schedule": "^2.2.0", "@nestjs/swagger": "^6.2.1", "@nestjs/typeorm": "^9.0.1", "@slack/web-api": "^6.8.1", "@tfarras/nestjs-firebase-admin": "^2.0.1", "@types/axios": "^0.14.0", "@types/child-process-promise": "^2.2.2", "@types/lodash": "^4.14.191", "aws-sdk": "^2.1314.0", "axios": "^1.3.3", "bcrypt": "^5.1.0", "big-integer": "^1.6.51", "builder-pattern": "^2.2.0", "child-process-promise": "^2.2.1", "class-transformer": "^0.5.1", "class-validator": "^0.14.0", "compression": "^1.7.4", "cookie-parser": "^1.4.6", "dd-trace": "^3.13.2", "deep-parse-json": "^1.0.2", "dotenv": "^16.0.3", "express": "^4.18.2", "ext-ip": "^0.3.9", "firebase-admin": "^11.5.0", "google-auth-library": "^8.7.0", "helmet": "^6.0.1", "ioredis": "^5.3.1", "joi": "^17.7.1", "lodash": "^4.17.21", "moment": "^2.29.4", "morgan": "^1.10.0", "mysql2": "^3.1.2", "nest-aws-sdk": "^3.0.1", "nest-winston": "^1.8.0", "nestjs-redis": "^1.3.3", "passport": "^0.6.0", "passport-jwt": "^4.0.1", "passport-local": "^1.0.0", "reflect-metadata": "^0.1.13", "rimraf": "^4.1.2", "rxjs": "^7.8.0", "swagger-ui-express": "^4.6.0", "typeorm": "^0.3.12", "typeorm-naming-strategies": "^4.1.0", "typeorm-transactional": "^0.4.1", "uuid": "^9.0.0", "winston": "^3.8.2", "winston-daily-rotate-file": "^4.7.1" }, "devDependencies": { "@nestjs/cli": "^9.2.0", "@nestjs/schematics": "^9.0.4", "@nestjs/testing": "^9.3.9", "@types/bcrypt": "^5.0.0", "@types/cookie-parser": "^1.4.3", "@types/express": "^4.17.17", "@types/jest": "^29.4.0", "@types/morgan": "^1.9.4", "@types/node": "^18.13.0", "@types/node-gzip": "^1.1.0", "@types/passport-jwt": "^3.0.8", "@types/passport-local": "^1.0.35", "@types/supertest": "^2.0.12", "@types/uuid": "^9.0.0", "@typescript-eslint/eslint-plugin": "^5.52.0", "@typescript-eslint/parser": "^5.52.0", "eslint": "^8.34.0", "eslint-config-prettier": "^8.6.0", "eslint-plugin-prettier": "^4.2.1", "jest": "^29.4.2", "prettier": "^2.8.4", "shx": "^0.3.4", "source-map-support": "^0.5.21", "supertest": "^6.3.3", "ts-jest": "^29.0.5", "ts-loader": "^9.4.2", "ts-node": "^10.9.1", "tsconfig-paths": "^4.1.2", "typescript": "^4.9.5", "yarn-upgrade-all": "^0.7.2" }, "engines": { "node": ">=16.0.0 <17.0.0" }, "packageManager": "yarn@3.4.1" }
16.19.1
Please, use our Discord channel (support) for such questions. We are using GitHub to track bugs, feature requests, and potential improvements.
Is there an existing issue for this?
Current behavior
In
.pnp.cjs
file, package location of@nestjs/core
is.yarn/unplugged
which added to .gitignore file. So if I tried to yarn pnp zero install (please read mybuildspec.yml
), AWS CodeBuild fails because@nestjs/core
module is not detected.Minimum reproduction code
https://stackblitz.com/edit/nestjs-typescript-starter-ugx3j9?file=buildspec.yml
Steps to reproduce
Expected behavior
@nestjs/core
should be loaded from.yarn/cache
Package
Other package
No response
NestJS version
9.3.9
Packages versions
Node.js version
16.19.1
In which operating systems have you tested?
Other
No response