공청
개발하는 금융인
공청
전체 방문자
오늘
어제
  • 분류 전체보기 (102)
    • 개인적인 이야기 (27)
    • IT에 관한 글 (15)
    • 경제, 금융 (12)
    • Python (2)
    • Javascript (6)
    • golang (2)
    • 비전공자를 위한 IT 지식 (0)
    • SQL (SQLD,SQLP) (1)
    • React (Front-end) (29)
    • 정보처리기사 (0)
    • Typescript (4)
    • (study) 모던 자바스크립트 Deep Dive (0)

블로그 메뉴

  • 홈
  • 태그
  • 미디어로그
  • 방명록
  • 글쓰기

공지사항

인기 글

태그

  • 조건부렌더링
  • ChatGPT
  • 창업
  • 트래블카드
  • useref
  • 인터넷
  • javascript
  • go
  • Golang
  • Effective Typescript
  • 일기
  • 기술스택
  • vite
  • vscode
  • 트래블월렛
  • typescript
  • Fira Code
  • 웹개발
  • python
  • approute
  • sql
  • react-router
  • 미국주식
  • 짧은생각
  • react
  • 언섹시비즈니스
  • 프로그래밍
  • HTTP
  • WSGI
  • next.js

최근 댓글

최근 글

티스토리

반응형
공청

개발하는 금융인

내가 경험한 Next.js 13.3 버그 (app route에 대하여)
IT에 관한 글

내가 경험한 Next.js 13.3 버그 (app route에 대하여)

2023. 5. 3. 15:38

"이 포스팅은 쿠팡 파트너스 활동의 일환으로, 이에 따른 일정액의 수수료를 제공받습니다."

"블로그 내의 광고와 쿠팡 링크를 클릭해주시면 블로그 운영에 큰 힘이 됩니다."

반응형

관련 글 : https://brunch.co.kr/@princox/250

 

웹 프로그래밍을 독학해서 제품을 만들며 느낀 점들

무언가를 하나 온전히 배우는 것은 쉽지 않다. | 이 글은 유사 시리즈물입니다. 이전 글을 보면 더 풍부한 경험을 할 수 있습니다. 1. https://brunch.co.kr/@princox/235 2. https://brunch.co.kr/@princox/236 3.https://

brunch.co.kr

 

 

Next.js 13.3 버전에서 App Route를 쓰면서 신나게 버그를 경험하고 있습니다.

 

크게 한 3가지의 고난/역경을 이겨냈으나 지금은 못 이겨내고 있는게 있습니다.

 

바로 route할 때 URL에 .txt가 붙는 현상인데요.

 

아래와 같은 현상이 일어납니다.

 

https://github.com/vercel/next.js/issues/48996

 

<Link href="/link" /> forwards to "/link.txt" · Issue #48996 · vercel/next.js

Verify canary release I verified that the issue exists in the latest Next.js canary release Provide environment information Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Ver...

github.com

https://github.com/vercel/next.js/issues/48414

 

GitHub Pages <Link href="/"> goes to to <user-name>.github.io/<repo-name>.txt · Issue #48414 · vercel/next.js

Verify canary release I verified that the issue exists in the latest Next.js canary release Provide environment information Operating System: Platform: linux Arch: x64 Version: #1 SMP Fri Jan 27 02...

github.com

https://github.com/vercel/next.js/issues/49042

 

Navigating to root route not working only adds .txt on the end · Issue #49042 · vercel/next.js

Verify canary release I verified that the issue exists in the latest Next.js canary release Provide environment information Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Ver...

github.com

 

저도 이와 같은 현상을 겪어서 찾던 중, github 내의 Discussions에도 없고, Stackoverflow에도 없어서

돌고 돌아 issue에 들어오니까 이런 현상을 확인하게 되었네요.

 

 

저는 너무 답답해서 이곳저곳 물어본 상황입니다.

https://github.com/vercel/next.js/discussions/49098

 

I'm using Next.js 13.3 app route, I got self.__next_f.push and .txt file in routed URL · vercel/next.js · Discussion #49098

Hi there. I'm using Next.js version 13.3. I built with output: "export" for SSG, and I keep getting txt after the URL whenever I app route. (npm run build -> npm run start) This is my a tag in firs...

github.com

 

https://stackoverflow.com/questions/76157727/next-js-13-3-appends-txt-to-urls-when-navigating-pages

 

Next.js 13.3 appends txt to URLs when navigating pages

I'm a student just starting to study the web. I built a project with SSG (output: "export") for uploading to Cloudflare pages. I am using Next.js version 13. I used something called app

stackoverflow.com

 

이래서 프레임워크의 새로운 버전에서 새로운 기능은 쉽게 쓰면 안되나봅니다.

 

 

특히 canary 버전에서는 조심!

 

 

해결 : Next의 버전은 13.3에서 13.2로 다운그레이드 하면 정상 작동함

 

https://github.com/vercel/next.js/issues/48996

 

<Link href="/link" /> forwards to "/link.txt" · Issue #48996 · vercel/next.js

Verify canary release I verified that the issue exists in the latest Next.js canary release Provide environment information Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Ver...

github.com

 

반응형
    'IT에 관한 글' 카테고리의 다른 글
    • 웹 개발, YouTube로 시작하자! (HTML, CSS, JS 배우기 좋은 영상 링크)
    • Next.js 13 App Router를 쓰며 static으로 빌드해본 경험
    • "스크롤"을 구현시 참고할만한 사이트 (Scroll, Animation)
    • Fira code, Cascadia Code에서 화살표가 정상적으로 보이지 않을 때 (화살표가 안 먹혀요)
    공청
    공청
    투자, 프로그래밍, IT에 대한 글을 씁니다.

    티스토리툴바