How to fix build error after setting up PWA for existing Vue 3 project? #10174
-
I setup a Vue 3 project with command Now I cannot build the project anymore, with error: If I remove line
from package.json I get different build error: How can I fix that? vite.config.js:
main.js look like this:
No registerServiceWorker.js file since as I understand it Vite should take care of that. Package.json:
service-worker.js , for now:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
import { VitePWA } from 'vite-plugin-pwa'