PWA build errors #103

Closed
opened 2024-02-22 00:52:30 +00:00 by jgeorgi · 1 comment
Owner

When using the PWA, the following errors are generated:

Not sure what's up with the second two. The first two are because I don't understand service works yet or the advice from the f7 intro

This is a PWA. Don't forget to check what is inside of your service-worker.js. It is also recommended that you disable service worker (or enable "Update on reload") in browser dev tools during development.

When using the PWA, the following errors are generated: * index-03eff9cb.js:88 Refused to create a worker from 'http://localhost/service-worker.js' because it violates the following Content Security Policy directive: "worker-src blob:". * index-03eff9cb.js:88 Uncaught (in promise) DOMException: Failed to register a ServiceWorker: The provided scriptURL ('http://localhost/service-worker.js') violates the Content Security Policy. * GET http://localhost/icons/144x144.png 404 (Not Found) * Error while trying to use the following icon from the Manifest: http://localhost/icons/144x144.png (Download error or resource isn't a valid image) Not sure what's up with the second two. The first two are because I don't understand service works yet or the advice from the f7 intro > This is a PWA. Don't forget to check what is inside of your service-worker.js. It is also recommended that you disable service worker (or enable "Update on reload") in browser dev tools during development.
jgeorgi added the
bug
label 2024-02-22 00:52:30 +00:00
jgeorgi added this to the 0.4.0 milestone 2024-02-26 16:57:46 +00:00
Author
Owner

Fixed the first two errors by adding 'self' to the worker-src CSP and modifying the path to the service worker. Fixed the second by just modifying the icon paths in manifest.json.

Fixed the first two errors by adding `'self'` to the `worker-src` CSP and modifying the path to the service worker. Fixed the second by just modifying the icon paths in `manifest.json`.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ALVINN/ALVINN_f7#103
No description provided.