Open nohehf opened 2 years ago
I've been running in to this same error but for other packages. I have not found a good solution yet, however have found a few temporary workarounds. You can change the format of the ssgOptions to format: 'cjs'
in the vite.config.ts file. Or you can modify the package.json of the workbox-window package to change either the "main" setting or add an exports conditional for import and require.
I ran into this as well. Would love a better solution than using cjs
in the config.
GoogleChrome/workbox#3066
Hey, I'm trying to build my app with vite ssg (created with the vitesse template). Here is the output of
pnpm build
I have vite-ssg version 0.17.11