qwik
qwik copied to clipboard
"build.target = es2015" show "uncaught SyntaxError: Unexpected token 'export' (at service-worker.js:1:2509)"
Qwik Version
0.10.0
Operating System (or Browser)
Mac os chrome 104.0.5112.79 (arm64)
Node Version (if applicable)
v16.13.2
Which component is affected?
Qwik City
Expected Behaviour
No error reporting
Actual Behaviour
Uncaught SyntaxError: Unexpected token 'export' (at service-worker.js:1:2509)__

Additional Information
git clone [email protected]:lzxb/qwik-demo.git
git checkout bugfix-service-worker
yarn
yarn preview
Hi @lzxb Just cloned your example repo mentioned above to give it a spin but didn't get the error. Do you still have it?

Thanks for your reply 🙏
Checked it again and i also have the error even on latest (0.12.1) when running the app using yarn preview
. When i build it and run it then yarn build && yarn start
, the SW seems to be perfect. Hope that helps for anybody to take over this task 🙏
Should be fixed!