hanford / next-offline

make your Next.js application work offline using service workers via Google's workbox
https://github.com/hanford/next-offline
1.59k stars 113 forks source link

Just updated to 5.0.5 and having workboxOpts issues #299

Open kchangch opened 1 year ago

kchangch commented 1 year ago

Hi,

I just updated next-offline from v3.4.6 to v5.0.5. However I'm seeing this issues:

Please check your GenerateSW plugin configuration: "importWorkboxFrom" is not a supported parameter.. "globPatterns" is not a supported parameter.. "globDirectory" is not a supported parameter.. "globIgnores" is not a supported parameter.

Those options are inside my workboxOpts, is there a breaking change in this regard? Thanks

ezekiel747 commented 1 year ago

similar thread https://github.com/expo/expo-cli/issues/3508 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

w8ze-devel commented 11 months ago

Theses link doesn't gave the answer or any workaround. The available option are alfeady displayed in the console @ezekiel747 Do you please have a working code to share ?