docker exec -it /bin/bash // 기존 CLI를 docker exec -it //bin//bash // 이렇게 바꿨다 참고 https://stackoverflow.com/a/48835704/5328663
환경 : eslint 8.10.0 해결방법 .eslintrc.js module.exports = { parser: '@typescript-eslint/parser', parserOptions: { project: 'tsconfig.json', tsconfigRootDir: __dirname, sourceType: 'module', }, plugins: ['@typescript-eslint/eslint-plugin'], extends: [ 'plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended', //
실행환경 docker: node14 ( backend) MySQL : 8+ (DB) 포트번호가 문제일 때 - 다른 포트번호 시도 docker-compose 환경에서 DBeaver로 연결이 안됐다. mysql은 독커 안에선 작동이 잘 됐다. 포트문제가 있었다. 3307번 포트가 독커 안 MySQL에선 연결이 됐지만 DBeaver에서 연결이 안됐기 때문에, 포트번호를 3306번으로 바꿨다. 하지만 3306 포트는 MYSQL80 시스템이 쓰고 있었기 때문에 시스템에 들어가서 중지를 했다. 3306이 연결됐다. 하지만 기존 포트번호인 3307번은 왜 안됐는지 의문이었다. 3307번이 되지 않아도 문제를 해결하는 법 1. 3307 외의 번호로 바꾼다. 3307을 제외한 3308, 4000번은 잘 연결이 됐다. 2..
원인 해결법 bcrypt가 순수js로 만들어지지 않았기 때문에 생기는 에러이다 npm install bcryptjs 또는 yarn add bcryptjs 기존 bcrypt 쓰던 곳에 bcryptjs로 바꾸기 참고) node.js - Why is importing bcrypt causing a "Cannot find module napi-v3/bcrypt_lib.node" error? - Stack Overflow bcryptjs - npm (npmjs.com) dcodeIO/bcrypt.js: Optimized bcrypt in plain JavaScript with zero dependencies. (github.com)
원인 해결법 google cloud SDK의 로그인한 계정이 프로젝트에 맞지 않을 때 생긴다 google cloud SDK에서 (없으면 깔고) gcloud auth login 입력 프로젝트 사용자로 로그인하면 해결 gcloud auth login | Google Cloud CLI Documentation
원인 해결법 서로 다른 곳에서 깃의 충돌 때문 git status로 modified가 있는 곳 확인 1. 그곳에서 깃 업데이트 또는 2. git stash && git pull origin master[또는 main] && git stash pop stash 란) 임시 저장공간이다. 따라서 내 걸 임시로 저장하고 git pull 한 뒤, 다시 적용시킨다는 뜻이다.
'typeorm' is not recognized as an internal or external command,operable program or batch file. typeorm 문제가 있었다. 해결법 npm install typeorm -g npm - Cant Use TYPEORM init - Stack Overflow

typeorm migration:generate -n 적용하려는 중 나타난 오류이다 해결법 https://stackoverflow.com/a/63846840/5328663 npx typeorm migration:create -n YourName -d src/migrations 또는 yarn typeorm migration:create -n YourName -d src/migrations

fetchBoard : [Board!]! 타입이다. [안쪽느낌표!] [바깥쪽]! 배열의 값이 null이 될 수 없다는 뜻 배열이 없어선 안된다는 뜻 (참고: javascript - GraphQL: Non-nullable array/list - Stack Overflow) 문제는 둘 중 하나다. 받아오는 배열이 없어서 받아온 배열에 null값이 있어서 1. 받아오는 배열이 없어서 그럼 배열을 받지 않아도 되게 만들어보자. // board.resolver.ts import { Query, Resolver, Mutation, Args } from '@nestjs/graphql'; import { BoardService } from './board.service'; import { Board } from './..

{ "error": { "errors": [ { "message": "Field \"fetchBoards\" of type \"[Board!]!\" must have a selection of subfields. Did you mean \"fetchBoards { ... }\"?", 내가 Playground에서 입력한 코드 subfield를 빠뜨려서 생긴 에러이다. Subfield를 입력하니 잘 된다.
GraphQLError [Object]: Query root type must be provided. Resolver.ts에 Query() 하나도 없을 때 나타난다. 추가하자 import { Args, Mutation, Query, Resolver } from '@nestjs/graphql'; import { CreateProductInput } from './dto/createProduct.input'; import { Product } from './entities/product.entity'; import { ProductService } from './product.service'; @Resolver() export class ProductResolver { constructor(private r..
0.0.0.0:3306 를 듣고 있는 포트번호를 죽여야 한다. netstat -a -o 입력 및 0.0.0.0:3306을 듣는 포트 찾기 taskkill /f /pid PID번호 다시 실행하면 잘 된다. 참고 블로그 : 윈도우에서 8080 포트 죽이기 (tistory.com)

failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount418445175/Dockerfile: no such file or directory docker-compose.yaml만 있고 Docker 파일 없어서 생긴 오류였다. Dockerfile 잘 챙기자 참고 사이트 : failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount587080174/Dockerfile: no such file or directory · ..
backend-my_backend-1 | node:internal/process/promises:246 backend-my_backend-1 | triggerUncaughtException(err, true /* fromPromise */); backend-my_backend-1 | ^ backend-my_backend-1 | backend-my_backend-1 | Error: connect ECONNREFUSED 127.0.0.1:80 backend-my_backend-1 | at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1161:16) { backend-my_backend-1 | errno: -111, backend-my_backend-1 | ..
- Total
- Today
- Yesterday
- arrowfunction
- GraphQL
- yarn
- Callback
- postman
- function
- 호이스팅
- Playground
- 명령어
- error
- nodemon
- 공부법
- 독커
- 에러
- Spread
- elasticsearch
- 콜백
- arrow
- typeorm
- 프로그래머스
- 코드캠프
- 코딩습관
- 도커
- NPM
- docker
- Rest
- js
- axios
- Console
- 백틱
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |