• 카테고리

    질문 & 답변
  • 세부 분야

    프론트엔드

  • 해결 여부

    미해결

build 성공 후 배포 완료가 안됩니다

21.09.30 17:12 작성 조회수 331

1

Repository를 fork 해서 실습해보는 중입니다.

master에 vue-news가 없어서 다른 branch로 실습을 진행했는데요.

Deploy log를 보면 lint를 통과하지 못해서 에러가 발생하는데,

결국 build가 된 것 같습니다.

그런데 강의에서처럼 Preview가 보이지 않아서 확인해보니 아직 Site deploy in progess 상태로 멈춰있었습니다.

원인이 lint를 통과하지 못해서가 맞는지 궁금합니다.

사용한 branch는 3_api, 13_api-advanced 입니다.

로그를 첨부합니다.

4:56:17 PM: 2 errors found.

4:56:17 PM: Module Warning (from ./node_modules/eslint-loader/index.js):

4:56:17 PM: error: Unexpected console statement (no-console) at src/views/UserView.vue:13:25:

4:56:17 PM:   11 |   created() {

4:56:17 PM:   12 |     fetchUser('davideast')

4:56:17 PM: > 13 |       .then(response => console.log(response))

4:56:17 PM:      |                         ^

4:56:17 PM:   14 |       .catch(error => console.log(error));

4:56:17 PM:   15 |   }

4:56:17 PM:   16 | }

4:56:17 PM: error: Unexpected console statement (no-console) at src/views/UserView.vue:14:23:

4:56:17 PM:   12 |     fetchUser('davideast')

4:56:17 PM:   13 |       .then(response => console.log(response))

4:56:17 PM: > 14 |       .catch(error => console.log(error));

4:56:17 PM:      |                       ^

4:56:17 PM:   15 |   }

4:56:17 PM:   16 | }

4:56:17 PM:   17 | </script>

4:56:17 PM: 2 errors found.

4:56:17 PM: You may use special comments to disable some warnings.

4:56:17 PM: Use // eslint-disable-next-line to ignore the next line.

4:56:17 PM: Use /* eslint-disable */ to ignore all warnings in a file.

4:56:17 PM:   File                                 Size               Gzipped

4:56:17 PM:   dist/js/chunk-vendors.04ab93e8.js    126.98 kb          44.01 kb

4:56:17 PM:   dist/js/app.a5b95203.js              5.58 kb            1.97 kb

4:56:17 PM:   dist/css/app.71f56251.css            0.56 kb            0.29 kb

4:56:17 PM:   Images and other types of assets omitted.

4:56:17 PM:  DONE  Build complete. The dist directory is ready to be deployed.

4:56:17 PM:  INFO  Check out deployment instructions at https://cli.vuejs.org/guide/deployment.html

답변 1

답변을 작성해보세요.

0

안녕하세요 패트릭님, 첨부해 주신 로그를 보면 빌드할 때 ESLint 에러가 난건 맞습니다. 그런데 빌드는 성공적으로 된 것 같아요. ESLint 에러는 console.log를 제거하시면 사라질 겁니다 :)