next-pwa causing "tapPromise" undefined error

Created on 8 Feb 2021  路  9Comments  路  Source: shadowwalker/next-pwa

Summary

next-pwa is causing "tapPromise" undefined error when trying to build the web application

How To Reproduce

Steps to reproduce the behavior:

  1. Install latest Next.js
  2. Install latest webpack
  3. Try building the application by running npm build or yarn build

Screenshots

image

bug

All 9 comments

Hi @helloitsm3 . This might be a duplicated from #138 and also #140 . In summary, I think this is an issue with webpack as it's written in this comment from one of the issues above: https://github.com/shadowwalker/next-pwa/issues/138#issuecomment-762603877

Hi @helloitsm3 . This might be a duplicated from #138 and also #140 . In summary, I think this is an issue with webpack as it's written in this comment from one of the issues above: #138 (comment)

Yes, it has something to do with Webpack since I have to downgrade webpack for it to work.

@helloitsm3 can you describe what you did exactly?

@helloitsm3 can you describe what you did exactly?

I didn't do much. All I did was using the latest nextjs and the latest next-pwa and it throws me a "webpack: not found" error. After adding [email protected], it throws me this error.

I also found only the solution to hard-pin the nextjs to 10.0.5 for now.

I also found only the solution to hard-pin the nextjs to 10.0.5 for now.

I think this issue is only happening on 10.0.6. I have other projects that is using 10.0.5 and it seems to be working fine

I see it happening as well in 10.0.7

I see it happening as well in 10.0.7

Probably because it doesn't support we pack 5 now which is why it's having this issue for NextJS 10+

Upgrade to both latest version of next.js and next-pwa now should fix the problem

Was this page helpful?
0 / 5 - 0 ratings

Related issues

harshzalavadiya picture harshzalavadiya  路  3Comments

thomasvaeth picture thomasvaeth  路  6Comments

loyep picture loyep  路  3Comments

jonahsnider picture jonahsnider  路  4Comments

louisbirla picture louisbirla  路  5Comments