• 로그인
  • 장바구니에 상품이 없습니다.

home2 게시판 Next.js 게시판 ObjectId 오류

ObjectId 오류

8 글 보임 - 1 에서 8 까지 (총 8 중에서)
  • 글쓴이
  • #132347

    진하경
    참가자
    스크린샷 2024-11-14 182725
    
    상세페이지 가져오는 ObjectId에 저렇게 됩니다....
    
    
    #132356

    codingapple
    키 마스터
    라이브러리가 이상해서일 뿐이라 별문제 없으면 냅둬도 됩니다
    #132368

    진하경
    참가자
    스크린샷 2024-11-15 101017
    
    result값을 못불러오고 있습니다
    
    
    참고로 props만 넣어도 에러가 뜹니다.
    #132371

    codingapple
    키 마스터
    props.params 잘나오고있나 출력부터 해봅시다
    #132388

    진하경
    참가자
    params: 
    Promise {
      <pending>,~~~
    
      },
      [Symbol(kResourceStore)]: undefined,
      [Symbol(kResourceStore)]: undefined,
      [Symbol(kResourceStore)]: undefined,
      [Symbol(kResourceStore)]: undefined
    }
    
    이런 메세지로 뜹니다.
    
    props.params._id는 undefined가 뜹니다.
    

    <div class="btn-bubble-icon"> </div>

    #132399

    codingapple
    키 마스터
    package.json파일에 next를 14.0.0으로 바꾸고 터미널에서 npm install 누릅시다
    #132412

    진하경
    참가자
    아래와 같은 오류가 납니다(실행x, 디펜던시 버전을 바꾸고 인스톨만 눌렀을 때)스크린샷 2024-11-16 174533
     
    npm error code ERESOLVE
    npm error ERESOLVE unable to resolve dependency tree
    npm error
    npm error While resolving: forum@0.1.0
    npm error Found: react@19.0.0-rc-66855b96-20241106
    npm error node_modules/react
    npm error react@"19.0.0-rc-66855b96-20241106" from the root project
    npm error
    npm error Could not resolve dependency:
    npm error peer react@"^18.2.0" from next@14.0.0
    npm error node_modules/next
    npm error next@"14.0.0" from the root project
    npm error
    npm error Fix the upstream dependency conflict, or retry
    npm error this command with --force or --legacy-peer-deps
    npm error to accept an incorrect (and potentially broken) dependency resolution. 
    npm error
    npm error
    npm error For a full report see:
    npm error C:\Users\USER\AppData\Local\npm-cache\_logs24-11-16T08_45_51_164Z-eresolve-report.txt
    npm error A complete log of this run can be found in: C:\Users\USER\AppData\Local\npm-cache\_logs24-11-16T08_45_51_164Z-debug-0.log
    #132419

    codingapple
    키 마스터
    리액트 부분도 둘다 18.2.0로 바꾸고 npm install 누르면 된다는데
    그냥 깔끔하게 설치강의에 나오는 명령어 따라서 14버전으로 새로 프로젝트 만들어서 씁시다
8 글 보임 - 1 에서 8 까지 (총 8 중에서)
  • 답변은 로그인 후 가능합니다.

About

현재 월 700명 신규수강중입니다.

  (09:00~20:00) 빠른 상담은 카톡 플러스친구 코딩애플 (링크)
  admin@codingapple.com
  이용약관
ⓒ Codingapple, 강의 예제, 영상 복제 금지
top

© Codingapple, All rights reserved. 슈퍼로켓 에듀케이션 / 서울특별시 강동구 고덕로 19길 30 / 사업자등록번호 : 212-26-14752 온라인 교육학원업 / 통신판매업신고번호 : 제 2017-서울강동-0002 호 / 개인정보관리자 : 박종흠