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

[build-utils] Detect and warn for yarn dynamic require error #13143

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

onsclom
Copy link
Contributor

@onsclom onsclom commented Mar 7, 2025

Error: Dynamic require of “util” is not supported happens when:

  • corepack is enabled (ENABLE_EXPERIMENTAL_COREPACK=1)
  • yarn is used
  • package.json includes "type": "module"

This PR prints a warning in that case and provides info on how to solve the problem.

Documentation added in https://github.com/vercel/front/pull/42658

Copy link

changeset-bot bot commented Mar 7, 2025

🦋 Changeset detected

Latest commit: 999dfa7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 6 packages
Name Type
@vercel/build-utils Patch
vercel Patch
@vercel/client Patch
@vercel/gatsby-plugin-vercel-builder Patch
@vercel/node Patch
@vercel/static-build Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@onsclom onsclom requested a review from LukeSheard March 7, 2025 22:53
@onsclom onsclom marked this pull request as ready for review March 7, 2025 22:54
@onsclom onsclom requested review from trek and a team as code owners March 7, 2025 22:54
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

Successfully merging this pull request may close these issues.

1 participant