🖥Frontend/Nuxt.JS
DOMException: Failed to execute 'appendChild' on 'Node': This node type does not support this method.
반응형
DOMException: Failed to execute 'appendChild' on 'Node': This node type does not support this method.
오류 사진
Nuxt.js에서 Generate를 사용하여 Product 환경에 배포하려고 할 때 발생되는 현상으로,
많은 사람들의 의견이 갈리는데 대체로 $nuxt에서 html 구조를 이상한 태그를 추가하여 발생하는 오류라고 합니다.
때문에 번들링에서 생기는 오류로써 이를 해결하기 위해서는
gulp 같은 방식을 사용해야 하는데 따로 설치를 하지 않고도 처리를 진행할 수 있는 방법이
nuxt에서는 가능합니다.
nuxt.config.js
module.exports = {
build: {
html: {
minify: {
collapseWhitespace: true, // as @dario30186 mentioned
removeComments: true, // 👈 add this line
},
},
},
};
반응형
'🖥Frontend > Nuxt.JS' 카테고리의 다른 글
NuxtJS - 서버 사이드 렌더링, 클라이언트 사이드 렌더링이란? 그리고 유의할 점 (0) | 2022.10.05 |
---|---|
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. (0) | 2022.07.18 |
🚀Nuxt.js에서 Simple-Vue-Validator 적용하기 (0) | 2022.05.30 |
[도전과제] Vue/Nuxt로 Youtube Video Player 개발하기 (0) | 2022.05.30 |
Nuxt에서 Video 플레이어를 배경으로 사용하기 (0) | 2022.05.22 |
댓글