-
Notifications
You must be signed in to change notification settings - Fork 816
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
workbox-webpack-plugin build error with TypeScript and eval-cheap-source-map #2729
Comments
I'm having a hard time reproducing this given the configuration you shared. Do you have a sample project (on GitHub, or as a If you can't share that, what versions of webpack and Workbox are you using? And could you at least share your |
@jeffposnick |
This comment has been minimized.
This comment has been minimized.
Just adding my voice to this, as we're seeing this error too. In our case, the error is introduced when upgrading workbox to version 5 (which happens automatically as part of bumping our version of |
I've been able to reproduce this but only when |
Just trying to get my head around what's happened here - it looks to me like a fix has been implemented in We're in a position where the upgrade we want to do ties us to workbox v5, meaning we'd be unable to get the fix in v6 (because create-react-app decides the workbox version for us). |
Hello @alexburlton-sonocent—all of the Workbox libraries are released concurrently (using The fix for this issue was merged into the We don't anticipate backporting this sort of change to the v5.x releases. |
The fix is now deployed in a pre-release of Workbox v6.2.0: https://github.com/GoogleChrome/workbox/releases/tag/v6.2.0-alpha.0 |
This issue is still occurring in my React 18 app on the latest workbox version (6.5.4). Here's my webpack config file:
|
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=workboxLibrary Affected:
workbox-webpack-plugin
Browser & Platform:
all browsers
Issue or Feature Request Description:
When using workbox-webpack-plugin with TypeScript and eval-cheap-source-map, the following error is generated for the service worker and execution halts:
This doesn't happen with inline-source-map. I've been using this but it's very slow.
Here is the webpack config bits:
The text was updated successfully, but these errors were encountered: