🎮 Unity 개발/Unity

[유니티 Unity] HTML 빌드 오류 해결

gameuiux 2024. 5. 20. 09:20
728x90
반응형

Build/buildhtml.framework.js.br 오류

Unable to parse Build/buildhtml.framework.js.br! This can happen if build compression was enabled but web server hosting the content was misconfigured to not serve the file with HTTP Response Header "Content-Encoding: br" present. Check browser Console and Devtools Network tab to debug.

 

구문 분석 오류라고 하는데

알아보니 Decompression Fallback을 체크해주면 해결된대서 체크하고 다시 빌드해보니...

 

아래와 같은 오류가 나왔다.

 

 

 

Build/buildhtml.framework.js.unityweb 오류

Unable to parse Build/buildhtml.framework.js.unityweb! The file is corrupt, or compression was misconfigured? (check Content-Encoding HTTP Response Header on web server)

 

HTML에서 이런 유형의 오류가 계속 나올 경우

포맷을 바꾸거나 압축을 바꾸는 등 다양한 해결 방법이 있었는데

포맷을 바꿔서 간단히 해결했다.

 

 

💡 해결

Decompression Fallback을 체크한 상태에서
Comporession Format을 Brotli에서 Gzip으로 바꾸고 해결

 

 

 


참고 https://forum.unity.com/threads/solved-webgl-build-error-unable-to-parse-build-file-name-framework-js-br.1102759/

728x90
반응형