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

home2 게시판 React 게시판 PWA 10초만에 발행하기 질문

PWA 10초만에 발행하기 질문

10 글 보임 - 1 에서 10 까지 (총 13 중에서)
  • 글쓴이
  • #4941

    규리
    참가자

    원래는 reportWebVitals(); 라고 되있던 것을 주석처리하고

    ServiceWorker.register();

    똑같이 입력한다음

    npm run build 했는데요

    mainifest.json파일은 있는데 serviceWorker.js 파일이 없습니다 ㅜㅜ

    #4942

    codingapple
    키 마스터

    serviceWorker.unregister()라는 부분이 index.js에 원래 없었나요?

    #4948

    규리
    참가자

    // If you want to start measuring performance in your app, pass a function<br />
    // to log results (for example: reportWebVitals(console.log))<br />
    // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals

    reportWebVitals();<br />
    <br />
    네 이렇게 되있었어요ㅜㅜ

    #4958

    codingapple
    키 마스터

    음 이상한데요 npx create-react-app으로 다른 프로젝트 한번 다른 폴더에 한번 만들어보시고 index.js 한번 확인해보도록 합시다 

    그리고 nodejs 버전도 알려주십시오

    #5042

    규리
    참가자

    nodejs

    v12.18.3 버전입니다.

    #5054

    codingapple
    키 마스터

    지웠다가 14로 재설치하고 다시 npx create-react-app 하신다음 index.js를 확인해보도록 합시다

    #5131

    규리
    참가자

    했는데 똑같이
    ServiceWorker.register();
    reportWebVitals();

     

    이렇게 생성됩니다..

    #5132

    규리
    참가자

    그리고 node js 재설치하니

    ./src/Detail.scss (./node_modules/css-loader/dist/cjs.js??ref--5-oneOf-6-1!./node_modules/postcss-loader/src??postcss!./node_modules/resolve-url-loader??ref--5-oneOf-6-3!./node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-6-4!./src/Detail.scss)
    Error: Missing binding E:\portfolio\react class\shop\node_modules\node-sass\vendor\win32-x64-83\binding.node
    Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 14.x

    Found bindings for the following environments:
    - Windows 64-bit with Node.js 12.x

    This usually happens because your environment has changed since running 'npm install'.
    Run 'npm rebuild node-sass' to download the binding for your current environment.

    npm run start 했을 때 이렇게 에러 떠요 ㅠ

    #5133

    codingapple
    키 마스터

    ServiceWorker.register() 있으면 드디어 정상입니다 

    밑의에러는 npm rebuild node-sass 하라는거같으니 입력해주도록합시다

    안되면 node-sass 지웠다가 다시설치합시다

    #5141

    규리
    참가자

    아뇨.. build했는데 여전히  serviceWorker.js 파일은 안보입니다ㅜ

10 글 보임 - 1 에서 10 까지 (총 13 중에서)
  • 답변은 로그인 후 가능합니다.

About

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

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

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