pangyoelon

  • 홈
  • 태그
  • 방명록

Router 1

[오류 / React] 배포 시 발생하는 Router path 문제

로컬에선 잘만 됐는데 github pages로 배포했더니 상단 바(Navbar 태그)를 제외한 컴포넌트가 렌더링 되지 않는다!!! URL이 달라졌으니 기존 path 속성이 안 먹힐 수밖에... 이럴땐?! basename={process.env.PUBLIC_URL} 를 BrowserRouter 태그에 속성으로 추가해 주시면 됩니다~ 리액트에게 기본 URL을 제공하는 거라고 하네요 출저 : https://medium.com/@_diana_lee/react-react-router-%EC%A0%81%EC%9A%A9%ED%95%9C-react-%EC%95%B1%EC%9D%84-github-pages%EB%A1%9C-%EB%B0%B0%ED%8F%AC%ED%95%98%EB%8A%94-%EB%B2%95-5f6119c6..

React 2022.10.06
이전
1
다음
더보기
프로필사진

pangyoelon

블록체인 개발자 https://github.com/km3140 https://velog.io/@pangyoelon

  • 분류 전체보기 (29)
    • BlockChain (4)
    • Node.js (6)
    • Javascript (1)
    • Solidity (4)
    • Git (3)
    • Go (1)
    • Shell (1)
    • 정보처리기사 (1)
    • React (2)
    • etc (2)
    • Typescript (1)
    • 해커톤 (1)
    • aws (1)

Tag

비트코인, solidity, 2022년 3월 5일 기출, undefined hackathon, ethersjs, 블록체인, Rebase, 깃허브 옵션, glitch hackathon, TypeError: Member "push" not found or not visible after argument-dependent lookup in, axios baseURL, react, lens protocol, 글리치 해커톤, tx.wait, undefined hacker house, git, 구글링 연산자 이스케이프, cors오류, 채굴,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2026/02   »
일 월 화 수 목 금 토
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

방문자수Total

  • Today :
  • Yesterday :

Copyright © AXZ Corp. All rights reserved.

  • Github

티스토리툴바