Closed claritise closed 1 year ago
same here!
This error isn't too much of an issue, because when your code gets auto-updated in the browser it re-calls the function. aka, expected behavior. You wont see this error in a production mode, and the function will not be called multiple times. This only happens on your local env.
The issue further down the pipe is the fact that the SW does not install at all for me, even in a production env because "the app does not work offline". I also had to copy the sw.js to the /public directory manually, to fix the 404 error in production env. I assume that would also fix your local issue, but thats hacky. Shouldn't have to copy that file anywhere.
This error isn't too much of an issue, because when your code gets auto-updated in the browser it re-calls the function. aka, expected behavior. You wont see this error in a production mode, and the function will not be called multiple times. This only happens on your local env.
The issue further down the pipe is the fact that the SW does not install at all for me, even in a production env because "the app does not work offline". I also had to copy the sw.js to the /public directory manually, to fix the 404 error in production env. I assume that would also fix your local issue, but thats hacky. Shouldn't have to copy that file anywhere.
copy the sw.js to the /public directory manually work for me!
Thanks!
next-pwa was not up to date with the latest version of nextjs but everything should be fine now: https://github.com/shadowwalker/next-pwa/commit/1e6af5fa9f6a807930f451adb5ab5078d5cda451#diff-38fcdef48d4c9636b640c40cb75b5278d405ab90f1b0960895900a068436f4cb
Please try again with a fresh install of react-three-next and close the issue if that fixes your problem :)
This is a fresh clone of the latest commit. This also causes a service error when visiting the webpack server in the browser.