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.
목차
파이어베이스 배포 시 나는 오류
[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 응답 후 로그인 창이 뜨게되면 계정 로그인 후 인증화면에 확인 누르면 로그인이 된다.
'🖥Frontend > Nuxt.JS' 카테고리의 다른 글
Firebase 오류 : node_modules/dist/index.esm Critical Dependency 해결하기 (0) | 2022.10.11 |
---|---|
NuxtJS - 서버 사이드 렌더링, 클라이언트 사이드 렌더링이란? 그리고 유의할 점 (0) | 2022.10.05 |
DOMException: Failed to execute 'appendChild' on 'Node': This node type does not support this method. (0) | 2022.07.07 |
🚀Nuxt.js에서 Simple-Vue-Validator 적용하기 (0) | 2022.05.30 |
[도전과제] Vue/Nuxt로 Youtube Video Player 개발하기 (0) | 2022.05.30 |
댓글