astro-service-worker
astro-service-worker copied to clipboard
Cannot read properties of undefined (reading 'renderers')
Hi, I'm trying to use your integration, but I get this error:
Cannot read properties of undefined (reading 'renderers')
File:
C:\Users\danyn\Documents\GitHub\explorershandbook\node_modules\astro-service-worker\index.js:27:33
Code:
26 | 'astro:config:setup': async ({ config, command, injectScript }) => {
> 27 | renderers = config._ctx.renderers;
| ^
28 | cfg = config;
30 | /** Add SW registration script */
+1
This is because the module is severely outdated and Astro updated their Integration Hooks API.