The file is not getting loaded in Chrom Dev tools -> source Should i add the serviceworker.js reference in index.html?
On Tue, Feb 5, 2019 at 12:20 PM f-end <[email protected]> wrote: > Did you tried access Serviceworker.js in browser directly? for example if > you are referring .js as "/Serviceworker.js" then try > http://localost:5000/Serviceworker.js and see if you can access. > localhost:5000 depends on your server and port. > > Thanks > Sandeep > > On Tuesday, February 5, 2019 at 12:12:05 PM UTC+5:30, Komal Shah wrote: >> >> Hi, >> I am trying to register Serviceworker.js in Ionic 4 project whose >> location is same as index.html and main.ts.But i am not able to registered >> it. >> Error that is displayed is : >> Failed to register a ServiceWorker: A bad HTTP response code (404) was >> received when fetching the script. >> >> Regards >> Komal >> > -- > You received this message because you are subscribed to the Google Groups > "Angular and AngularJS discussion" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/angular. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
