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

Add web-worker to server-external-packages.json #74210

Open
wants to merge 1 commit into
base: canary
Choose a base branch
from

Conversation

robknight
Copy link

What?

Adds the web-worker package to server-external-packages.json.

Why?

web-worker is a popular package (1.1k GitHub stars, 910k weekly downloads on npm).

Unfortunately, bundling it causes it to break on the server side, causing mysterious hangs when trying to start worker threads. Since this library is used as a dependency by other libraries which require worker threads, debugging the issue can be hard. Adding the library to serverExternalPackages in the Next config resolves the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants