Bug
Unrelated
chrome
node -v: 8.5.0npm -v: 5.4.0yarn --version (if you use Yarn):npm ls react-scripts (if you haven鈥檛 ejected): 1.0.13 Then, specify:
Uncaught (in promise) TypeError: Request scheme 'chrome-extension' is unsupported
at service-worker.js:1
at <anonymous>
/cc @jeffposnick
any chance this is caused by some extension. Can you reproduce this in anonymous mode?
This is what I'd expect if you attempt to register a service worker that intercepts requests for chrome-extension: URLs. The service worker can't respond to to those types of requests, and there's an error logged suggesting as much.
Chrome has its own approach to installing/caching the resources needed to display a Chrome Extension. Service workers don't fit into that picture.
The message in the console can be safely ignored (it's not going to affect your extension's functionality), and to prevent it from showing up in the future, you can modify your index.js to remove the registerServiceWorker() call.
There's also an unregister function that you could optionally add in to your index.js if you've deployed this publicly and want to "clean up" the noise from the previous non-functionality registration.
@jeffposnick can you post an example how the code call for the unregister look like? same problem using RCA to build an extension.
// Inside index.js:
import {unregister} from './registerServiceWorker';
unregister();
Most helpful comment
This is what I'd expect if you attempt to register a service worker that intercepts requests for
chrome-extension:URLs. The service worker can't respond to to those types of requests, and there's an error logged suggesting as much.Chrome has its own approach to installing/caching the resources needed to display a Chrome Extension. Service workers don't fit into that picture.
The message in the console can be safely ignored (it's not going to affect your extension's functionality), and to prevent it from showing up in the future, you can modify your
index.jsto remove theregisterServiceWorker()call.There's also an
unregisterfunction that you could optionally add in to yourindex.jsif you've deployed this publicly and want to "clean up" the noise from the previous non-functionality registration.