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

fix: missing dependencies for pnpx #435

Merged
merged 2 commits into from
Oct 14, 2024
Merged

Conversation

huozhi
Copy link
Contributor

@huozhi huozhi commented Oct 14, 2024

What

Seeing error with yarn running the codemod

Require stack:
- /private/var/folders/gy/kq4zjn8s0ljf9sfjyyh_nj640000gn/T/xfs-7876c1ec/dlx-47763/.yarn/cache/types-react-codemod-npm-3.4.0-ab138b8b9f-7732b43362.zip/node_modules/types-react-c
odemod/transforms/refobject-defaults.js
- /private/var/folders/gy/kq4zjn8s0ljf9sfjyyh_nj640000gn/T/xfs-7876c1ec/dlx-47763/.yarn/cache/types-react-codemod-npm-3.4.0-ab138b8b9f-7732b43362.zip/node_modules/types-react-c
odemod/transforms/preset-19./private/var/folders/gy/kq4zjn8s0ljf9sfjyyh_nj640000gn/T/xfs-7876c1ec/dlx-47763/.pnp.cjs:9375
      Error.captureStackTrace(firstError);
            ^

Error: types-react-codemod tried to access @babel/types, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.

Required package: @babel/types
Required by: types-react-codemod@npm:3.4.0 (via /private/var/folders/gy/kq4zjn8s0ljf9sfjyyh_nj640000gn/T/xfs-7876c1ec/dlx-47763/.yarn/cache/types-react-codemod-npm-3.4.0-ab138b
8b9f-7732b43362.zip/node_modules/types-react-codemod/transforms/)

@babel/types is a required dependencies for babel, adding it here to ensure it's get installed

Copy link

changeset-bot bot commented Oct 14, 2024

🦋 Changeset detected

Latest commit: c6ade4e

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

This PR includes changesets to release 1 package
Name Type
types-react-codemod 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

@eps1lon eps1lon mentioned this pull request Oct 14, 2024
@eps1lon eps1lon enabled auto-merge (squash) October 14, 2024 13:06
@eps1lon eps1lon merged commit a7cc3ce into eps1lon:main Oct 14, 2024
2 checks passed
@github-actions github-actions bot mentioned this pull request Oct 14, 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

Successfully merging this pull request may close these issues.

2 participants