Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GenerateSW has been called multiple times, perhaps due to running webpack in --watch mode. #3180

Closed
Janani-BlueOcean opened this issue Mar 1, 2023 · 3 comments

Comments

@Janani-BlueOcean
Copy link

Welcome! Please use this template for reporting bugs or requesting features. For questions about using Workbox, the best place to ask is Stack Overflow, tagged with [workbox]: https://stackoverflow.com/questions/ask?tags=workbox

Library Affected:
workbox-sw, workbox-build, etc.

Browser & Platform:
E.g. Google Chrome v51.0.1 for Android, or "all browsers".

Issue or Feature Request Description:
Your request here.

When reporting bugs, please include relevant JavaScript Console logs and links to public URLs at which the issue could be reproduced.

@prprabhu-ms
Copy link

This is a known issue that only affects local devserver runs.

See #1790 for prior context.

@jon-ressio
Copy link

Coming from a nextjs app, it would be really nice if this warning only got written one time per call to next dev. For me I get it every time a set of server components are compiled. It ends up being a significant console spam.

Any thoughts on something like below? If I understand the code and how webpack is working, it would mean I'd see 1 warning for inject-manifest and another for generate-sw, but then nothing for subsequent calls to each?

I'll spin up a quick PR so we can discuss there...

image

@tomayac
Copy link
Member

tomayac commented Apr 25, 2024

Hi there,

Workbox is moving to a new engineering team within Google. As part of this move, we're declaring a partial bug bankruptcy to allow the new team to start fresh. We realize this isn't optimal, but realistically, this is the only way we see it working. For transparency, here're the criteria we applied:

Thanks, and we hope for your understanding!
The Workbox team

@tomayac tomayac closed this as completed Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants