After installing this in an epic-web project to make it a pwa, I run into the following issue during build:
Error during worker build: SyntaxError: [vite-plugin-remix-pwa:virtual-entry-sw] Could not load virtual:entry-sw (imported by ../../node_modules/@remix-pwa/worker-runtime/dist/src/service-worker.internal.js): Unexpected token, expected "}" (7:16)
Any ideas on how to go about fixing it? For reference, here are the versions I'm using:
"dependencies": {
"@remix-pwa/dev": "^3.0.2",
"@remix-pwa/sw": "^3.0.1",
"@remix-pwa/worker-runtime": "^2.1.0",
"@remix-run/express": "^2.8.1",
"@remix-run/node": "^2.8.1",
"@remix-run/react": "^2.8.1",
"react": "18.2.0",
"react-dom": "18.2.0",
},
"devDependencies": {
"@remix-run/dev": "^2.8.1",
"@types/react": "^18.2.74",
"@types/react-dom": "^18.2.24",
"typescript": "^5.4.4",
"vite": "^5.2.8",
},
"engines": {
"node": ">=20.0.0"
}