CORS 미들웨어 위치 확인CORS 미들웨어는 다른 모든 라우터와 미들웨어보다 먼저 정의되어야 합니다. 기존 코드를 다시 확인하고, CORS 설정이 가장 먼저 적용되는지 확인해보세요. cors에러가 발생한 코드(cors 미들웨어 설정이 밑에 작성되어 있음)import express, { Express, Request, Response } from "express";import cors from "cors";import { Pool } from "pg";import cookieParser from "cookie-parser";import userRouter from "./routes/users";const app: Express = express();const port = 5000;// 라우터 임포트app..
Module parse failed: Unexpected character '@' (1:0) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders > @tailwind base; | @tailwind components; | @tailwind utilities; postcss-loadercss-loaderstyle-loader 셋 다 설치했는데 도대체 왜 안되는 것이냐... 진도가 안나가잖아...
맥북에서 코파일럿을 잘 쓰고 있었는데 어느날 부터 안되기 시작했다. vscode에 우측 하단에 팝업으로 troubleshooting keychain 라는 버튼이 나오고 누르면 https://code.visualstudio.com/docs/editor/settings-sync#_troubleshooting-keychain-issues 이 사이트로 연결된다. 봐도 잘 모르겠고 해결되지 않았다.. stack overflow 에서 copilot extension 을 삭제하고 web상에 github를 sign out 한 다음에 extension을 재설치하고 로그인 시도를 해보라고 해서 했으나 똑같은 문제가 발생했다. 다른 stackoverflow 글에서 vscode 버전이 오래된 경우 문제가 발생할 수도 있다는 ..
https://dev.classmethod.jp/articles/resolving-github-token-authentication-errors/ GitHub 토큰 인증 에러 해결 remote: Support for password authentication was removed. Please use a personal access token i git push 명령어를 입력할 때 나오는 토큰 인증 에러를 해결하는 방법에 대해서 정리해 봤습니다. dev.classmethod.jp push하면 vs코드에서 password 입력창이 상단에 뜨고 깃허브 비밀번호를 입력해도 제목과 같은 오류가 발생한다. token 재발급해서 password에 token값을 입력하면 해결된다. 위 링크를 통해 보고 해결했다.
https://jeongkyun-it.tistory.com/195# [Git] The requested URL returned error: 403 Push 에러 해결 방법 서론 필자가 저 에러를 뱉기까지의 상황은 다음과 같다. 권한(Admin)을 부여받은 공용 repository를 fork한 후 작업 후 push하니까 다음과 같은 에러가 발생했다. 이 403에러는 github을 사용하기 위해 셋 jeongkyun-it.tistory.com 깃허브 push 하니 remote 관련해서 오류가 발생했다. 기존 remote add 한 url에 set-url을 해서 username을 추가했다. 깃허브 username을 찾는 방법은 터미널에 git config user.name 을 입력하면 된다. 위 링크를 보고 ..
깃허브 명령어 작업 중에 아래와 같은 화면이 나오고 push나 pull이 안될 경우에는 어떻게 해야할까? 1. --allow-unrelated-histories git push/pull 명령어 뒤에 --allow-unrelated-histories를 붙여준다. git push/pull ex) git push origin main --allow-unrelated-histories git pull origin main --allow-unrelated-histories 2. 1번이 안될경우 1) 강제로 push/pull 하기 ( push -f 할 경우 깃허브 코드가 덮어쓰기 되니 주의할 것 ) git push/pull origin main -f 2) 깃허브 코드가 pull이 안될 때 ㄱ. 깃허브 파일 들어가서..
- Total
- Today
- Yesterday
- unexpected character
- .catch()
- 문자열
- 비동기
- 전역변수
- 태스크큐
- 머리아프다..
- unique "key" prop.
- 상속
- 함수
- 객체속성 추가 삭제
- .then()
- JSX
- react
- 에이블스쿨2일차
- 프로토타입 체이닝
- 배열내특정요소찾기
- 함수형코딩
- 리액트 이미지경로
- 대괄호표기법
- cors위치
- 객체리터럴
- promise
- 미들웨어위치
- universal rendering
- Props
- 조대곤교수님
- 동등비교연산자
- .finally()
- null과 undefined
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |