Open IonutQo2 opened 5 years ago
Any ideas? I haven't been able to solve this
@IonutQo2
It could be the case that your index.html
file is note being being exlcuded properly. This could be if webpack is responsible for generating it via for example htmlwebpackplugin
. (see, amongst other, issue #229)
This could be fixed by excluding your root. Depending on how this is served (I am not familiar with symfony), it could be as easy as adding it to externals
:
externals: [
'/'
]
Also, please see the troubleshooting docs for additional info.
Hello,
I have been having issues when trying to run the PWA in offline mode. I receive no error when running the "yarn encore dev --watch". When checking the assets cached I can see that everything seems in place. I am using symfony 4.2 if that helps with encore and webpack
App.js file has the follwing code:
require('offline-plugin/runtime').install();
Webpack.config.js has the following:
Inside the sw.js I got at the beginning the following:
The browser attached images:
From this I can see that the assets are cached:
Also I can see in the manifest tab that it says: "No matching service worker detected" if that means anything.
I have also tried to leave plugin setup without any configuration with the same result:
.addPlugin(new OfflinePlugin())
I am trying this using a docker container andthe localhost host. Can someone help? I have stayed all day trying to debug and find related issues but with no success.