After upgrade from v5.0.6 to v5.2.5, build are failing on Vercel platform (but not locally).
Steps to reproduce the behavior:
next-pwa from v5.0.6 to v5.2.5Build to finish successfully.

Looking at recent commits, found THIS one and I guess the problem is related to the cacheWillUpdate change. Maybe because of using Optional Chaining.
Yes, this is the same error that i am facing on Heroku build.
Hello, I am facing the same problem on my platform
Hello, i have the same problem in node.js v.12. It does not support optional chaining. v5.2.1 works good.
Version 5.2.7 should fix this problem.
Most helpful comment
Version
5.2.7should fix this problem.