Closed ezekiel747 closed 3 years ago
Hi @ezekiel747! This looks like an issue with next-offline
, and specifically this issue. You can try running your project without next-offline
, if that works fine (even though offline is disabled) it's that library.
Thank you for responding. I've discovered that due to a change in a more recent version of workbox-webpack-plugin (not sure which one), the these are indeed no longer valid options:
we may use instead the "include" option, which require another format instead (regex).
The instructions in Expo docs should be checked and corrected / updated to actually work with the current version of next-offline and / or its workbox-related dependencies. I would rather let someone more experienced with nextjs & workbox than doing a PR myself. Thanks!
is there anywhere where I can find what to use instead of globPatterns, globDirectory, and globIgnores?
sorry for the late response - check out these links for the available options: https://developer.chrome.com/docs/workbox/modules/workbox-webpack-plugin/ https://developer.chrome.com/docs/workbox/reference/workbox-build/#type-WebpackGenerateSWOptions
Hi, i'm encountering an error when trying to use next-offline with expo:
This is the next.config.js content:
Could you please help? Thanks.