Warnings in workbox 2.0

Darkside73
40
Darkside73
commented a year ago

There are several warnings in console after upgrade to v2.0:

๐Ÿ”ง [Warn] registerRoute() was called with a string containing an Express-style wildcard character. In the next version of Workbox, Express-style wildcards won't be supported, and strings will be treated a exact matches. Please switch to regular expressions for equivalent behavior.
workbox-sw.prod.v2.1.2.js:23 Path String:  /**
workbox-sw.prod.v2.1.2.js:23 Wildcard Character:  *
workbox-sw.prod.v2.1.2.js:23 Learn More:  https://goo.gl/xZMKEV
workbox-sw.prod.v2.1.2.js:sourcemap:23 ๐Ÿ”ง [Warn] registerRoute() was called with a string containing an Express-style wildcard character. In the next version of Workbox, Express-style wildcards won't be supported, and strings will be treated a exact matches. Please switch to regular expressions for equivalent behavior.
workbox-sw.prod.v2.1.2.js:23 Path String:  /_nuxt/**
workbox-sw.prod.v2.1.2.js:23 Wildcard Character:  *
workbox-sw.prod.v2.1.2.js:23 Learn More:  https://goo.gl/xZMKEV
0
pi0
21.4k
pi0
commented a year ago

Thanks, @Darkside73 for the tip. It should be fixed with 2.0.1 :)

0
Informations
Question โ€ข Unresolved
#c13 - Created a year ago