shadowwalker / next-pwa

Zero config PWA plugin for Next.js, with workbox 🧰
MIT License
3.89k stars 325 forks source link

ReferenceError: pageExtensions is not defined #265

Closed rafiandria23 closed 3 years ago

rafiandria23 commented 3 years ago

Summary

As mentioned in the title, I got pageExtensions undefined, when I downgraded to version 5.2.24, it went back to work just fine.

Versions

How To Reproduce

Steps to reproduce the behavior:

  1. Run yarn add next-pwa
  2. Run yarn dev
  3. You'll see the error, it immediately exits with the message (in screenshot).

It's a private repo, so all I can give is the screenshot.

Expected Behaviors

The next dev script should keep running without exiting.

Screenshots

Here's my next.config.js

Screen Shot 2021-08-16 at 1 14 33 PM

Here's the error screenshot

Screen Shot 2021-08-16 at 1 18 16 PM
zh30 commented 3 years ago

I have the same error 企业微信20210816-145741

anshulagx commented 3 years ago

This is a problem with the latest update. Switching back to "next-pwa": "5.2.24" in package.json works for me, for now.

Vicnovais commented 3 years ago

I have the same issue! Apparently the function getFallbackEnvs is missing "pageExtensions" argument

image

arafatamim commented 3 years ago

Apparently the function getFallbackEnvs is missing "pageExtensions" argument

High time for a project like this to start using a linter or even a transpiler like TypeScript to avoid these silly human errors, don't you think?

shadowwalker commented 3 years ago

Fixed in 5.3.1

rafiandria23 commented 3 years ago

It works just fine now, thank you @shadowwalker