New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vite build error 0.16.4
Error: Dynamic require of "workbox-build" is not supported
#540
Comments
@mathiash98 can you check if you have workbox-build installed? From your log, it seems the dynamic import is failing, and then trying to load workbox-build using require: https://github.com/vite-pwa/vite-plugin-pwa/blob/main/src/modules.ts#L13-L26 |
From 0.16.0 you need Node 16: https://github.com/vite-pwa/vite-plugin-pwa#-install |
@userquin
Using Node 20.3 |
@mathiash98 can you provide a minimal repro? |
Upon creating the minimal repro I found out I still had Removing this package solved the problem! Thanks for the time @userquin |
Vite:
4.3.9
Vue:
3.3.4
vite-plugin-pwa:
0.16.4
NodeJs:
20.3.0
Error:
Tried:
0.16.x
0.15.x
0.14.x
Potentially related issues:
#405
The text was updated successfully, but these errors were encountered: