🖥Frontend/Nuxt.JS

Nuxt 파이어베이스 배포 시 나는 오류 : Note: The code generator has deoptimised the styling of /node_modules/bootstrap-vue/src/icons/icons.js as it exceeds the max of 500KB.

코너(Corner) 2022. 7. 18.
반응형

파이어베이스 배포 시 나는 오류

[BABEL] Note: The code generator has deoptimised the styling of /node_modules/bootstrap-vue/src/icons/icons.js as it exceeds the max of 500KB.

nuxt.config.js에 build 부분에 추가한다.

  build: {
     babel: {
      compact: true,
     },
  },

파이어베이스 배포 시 나는 오류 2

╭──────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ ⚠ Nuxt Warning │
│ │
│ The command 'nuxt generate' finished but did not exit after 5s │
│ This is most likely not caused by a bug in Nuxt │
│ Make sure to cleanup all timers and listeners you or your plugins/modules start. │
│ Nuxt will now force exit │
│ │
│ DeprecationWarning: Starting with Nuxt version 3 this will be a fatal error │
│ │
╰──────────────────────────────────────────────────────────────────────────────────────╯

sh: firebase: command not found

.nuxt/ package-lock.json, node_modules/ 파일들을 지우고

npm i 후 배포 스크립트 실행

"deploy": "nuxt generate && firebase deploy --only hosting:app-v2",


Make sure to cleanup all timers and listeners you or your plugins/modules start.

라는 문구는 플러그인에 문제가 발생하였을 가능성이 높으므로 가장 최근에 추가한 플러그인 폴더의 모듈을 제거해본다.


파이어베이스 로그인 오류 : Error: Failed to authenticate, have you run firebase login?

터미널에

$ firebase login

이후 나오는 질문에 Y 응답 후 로그인 창이 뜨게되면 계정 로그인 후 인증화면에 확인 누르면 로그인이 된다.

반응형

댓글