• Register
0 votes
36 views

Problem :

I just launched my site and don't effectively do anything for a couple of seconds, and afterward the below indicated error message is produced in devTools. In the event that some procedure is done, the error doesn't emerge

Service Worker termination by a timeout timer was canceled because DevTools is attached

Please find below my System Configuration:

OS:- Windows 10 Pro
webpack:- 1.14.0
sw-precache-webpack-plugin:- 0.9.1
sw-precache:- 5.0.0

6 5 3
7,540 points

1 Answer

0 votes

Solution :

Ordinarily, idle service workers are forcefully slaughtered as an improvement, to keep code from running out of sight when it's not required. Chrome finds a way to recognize whether DevTools are open, and when it is, won't kill the service worker automatically. The supposition that will be that if an engineer is utilizing DevTools, they may be troubleshooting or generally looking at the service worker's behavior, and killing the service worker would baffle the designer. Expanding the lifetime of the service worker used to be done quietly, however as portrayed here, for as far back as hardly any adaptations of Chrome, the message

Service Worker termination by a timeout timer was canceled because DevTools is attached.

is logged to the console to tell the designer that the service worker would typically have been killed, however the job to kill it was dropped due to DevTools being open.

9 7 4
38,600 points

Related questions

0 votes
2 answers 267 views
267 views
Problem : I often face below error after making the trivial React example page: &ldquo;Uncaught Error: Invariant Violation: _registerComponent(...): Target container is not a DOM element.&rdquo; Below is my code: /** The @jsx React.DOM */ 'use strict'; var MyReact = require('react'); ... > <head>  <script src="/mybundle.js"></script> </head> <body> </body> </html> What does the above error mean?
asked Jan 7 alecxe 7.5k points
1 vote
1 answer 48 views
48 views
Problem : I am very new to ruby-on-rails and reactjs. I have recently joined a new project. If I try to iterate through my variable mybadges and try to display each badge then I face below error : Each child in an array or iterator should have a unique "key" prop. ... error but was unable to fix it. So now I am looking for ruby-on-rails and reactjs expert who can help me in fixing above error.
asked May 4 stewart 4k points
0 votes
1 answer 162 views
162 views
Problem : I am trying to use the reactrouter but i am getting following error because its mime type ('text/html') is not executable, and strict mime type checking is enabled
asked Nov 13, 2019 peterlaw 6.9k points
0 votes
1 answer 10 views
10 views
What is the difference between node js and react js?
asked Oct 10 sikandar 2.4k points