PWA 환경 설정중 발생한 에러

Junghan Lee·2023년 5월 23일
0

Errors

목록 보기
1/2
    1. 23

next - pwa 환경 설정중

error after build image with docker [WebpackGenerateSW] 'pwa' property is not expected to be here

라는 에러 메시지를 마주했다.

의외로 조금 쉽게 해결되었다.

next.config.js 파일에서

module.exports = [nextConfig, withPWA]

으로 바꾸어 주었고

manifest.json의 위치를 public안으로 옮겨주니 해결되었다.

native iOS 환경설정 중 마주하게 되는 pod 에러 등은 그렇게 어려웠는데...

profile
Strive for greatness

0개의 댓글