nest new 로 생성한 파일에서
nest g res 000 을하면
이런 에러가 떠서 구글링을 해보니
스택오버플로우에서
다운그레이드를 해보라는 말이 있길래 버전을 다운그레이드 를 해보았지만 문제가 동일하였다
실제 nest cli git으로 가보니
한시간전에도 많은사람들이 동일한 이슈를 겪고 있길래
혹시 몰라 전에서 사용하던 package.json 파일을 긁어와서 적용을 해보니
오류가 해결됬다.
사용한 package.json
{
"name": "talentverse",
"version": "0.0.1",
"description": "",
"author": "",
"private": true,
"license": "UNLICENSED",
"scripts": {
"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 --config ./test/jest-e2e.json"
},
"dependencies": {
"@nestjs/common": "^9.0.0",
"@nestjs/config": "^3.2.3",
"@nestjs/core": "^9.0.0",
"@nestjs/platform-express": "^9.4.0",
"@nestjs/swagger": "^6.3.0",
"@nestjs/typeorm": "^9.0.1",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.1",
"joi": "^17.13.3",
"mysql2": "^3.10.3",
"rxjs": "^7.8.1",
"typeorm": "^0.3.20"
},
"devDependencies": {
"@nestjs/cli": "^9.0.0",
"@nestjs/schematics": "^9.0.0",
"@nestjs/testing": "^9.0.0",
"@types/express": "^4.17.17",
"@types/jest": "^29.5.2",
"@types/node": "18.11.18",
"@types/supertest": "^6.0.0",
"@typescript-eslint/eslint-plugin": "^7.0.0",
"@typescript-eslint/parser": "^7.0.0",
"eslint": "^8.42.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
"jest": "^29.5.0",
"prettier": "^3.0.0",
"source-map-support": "^0.5.21",
"supertest": "^7.0.0",
"ts-jest": "^29.1.0",
"ts-loader": "^9.4.3",
"ts-node": "^10.9.1",
"tsconfig-paths": "^4.2.0",
"typeorm-naming-strategies": "^4.1.0",
"typescript": "^4.7.4"
},
"jest": {
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"rootDir": "src",
"testRegex": ".*\\.spec\\.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"collectCoverageFrom": [
"**/*.(t|j)s"
],
"coverageDirectory": "../coverage",
"testEnvironment": "node"
}
}
혹시 동일한 이슈를 겪고 있다면 한번 참고해보는것도 좋은 방법이다
그리고 오류를 봤을때 아마 nest/schematics 쪽에서 문제가 계속 발생하고 있는거 같다
'오류해결' 카테고리의 다른 글
prisma.테이블명.create() invocation 에러 (0) | 2024.06.13 |
---|---|
오류 해결] File exoststem.config.js not found (0) | 2024.06.07 |
오류해결) ISO-8601 DateT (1) | 2024.06.04 |
오류해결] 리눅스 에서 몽고DB 서버 연결실패 (0) | 2024.05.16 |