-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Issues with yarn pnp #7999
Comments
Strange, that should have been fixed by #7977 |
It was fixed, until I added a |
Sharing my findings:
|
Unless we can somehow get rid of the peerdependencies entirely, I think this is the best solution. |
I'm trying to update Gatsby to Parcel 2.5.0 in gatsbyjs/gatsby#35446 and I'm also hitting failures in our PnP test suite: https://app.circleci.com/pipelines/github/gatsbyjs/gatsby/81867/workflows/d3e36eec-2a63-4525-95b5-d8db5758292f/jobs/971306 error Error: /tmp/e2e-tests/gatsby-pnp/.yarn/__virtual__/gatsby-parcel-config-virtual-a1c7aa3859/4/home/circleci/project/node_modules/@parcel/source-map/parcel_sourcemap_node/artifacts/index.linux-x64-gnu.node: cannot open shared object file: No such file or directory
at Object.Module._extensions..node (internal/modules/cjs/loader.js:1122:18)
at Module.load (internal/modules/cjs/loader.js:928:32)
at NodePackageManager.load (/tmp/e2e-tests/gatsby-pnp/.yarn/__virtual__/@parcel-package-manager-virtual-5853e6c739/0/cache/@parcel-package-manager-npm-2.5.0-451e73037f-d1b307d19c.zip/packages/core/package-manager/src/NodePackageManager.js:130:9)
at NodePackageManager.requireSync (/tmp/e2e-tests/gatsby-pnp/.yarn/__virtual__/@parcel-package-manager-virtual-5853e6c739/0/cache/@parcel-package-manager-npm-2.5.0-451e73037f-d1b307d19c.zip/packages/core/package-manager/src/NodePackageManager.js:94:17)
at Module.m.require (/tmp/e2e-tests/gatsby-pnp/.yarn/__virtual__/@parcel-package-manager-virtual-5853e6c739/0/cache/@parcel-package-manager-npm-2.5.0-451e73037f-d1b307d19c.zip/packages/core/package-manager/src/NodePackageManager.js:117:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object.<anonymous> (/tmp/e2e-tests/gatsby-pnp/.yarn/__virtual__/gatsby-parcel-config-virtual-a1c7aa3859/4/home/circleci/project/node_modules/@parcel/source-map/parcel_sourcemap_node/index.js:15:18)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Object.require$$0.Module._extensions..js (/tmp/e2e-tests/gatsby-pnp/.pnp.cjs:28565:33)
at Module.load (internal/modules/cjs/loader.js:928:32)
at NodePackageManager.load (/tmp/e2e-tests/gatsby-pnp/.yarn/__virtual__/@parcel-package-manager-virtual-5853e6c739/0/cache/@parcel-package-manager-npm-2.5.0-451e73037f-d1b307d19c.zip/packages/core/package-manager/src/NodePackageManager.js:130:9)
at NodePackageManager.requireSync (/tmp/e2e-tests/gatsby-pnp/.yarn/__virtual__/@parcel-package-manager-virtual-5853e6c739/0/cache/@parcel-package-manager-npm-2.5.0-451e73037f-d1b307d19c.zip/packages/core/package-manager/src/NodePackageManager.js:94:17)
at Module.m.require (/tmp/e2e-tests/gatsby-pnp/.yarn/__virtual__/@parcel-package-manager-virtual-5853e6c739/0/cache/@parcel-package-manager-npm-2.5.0-451e73037f-d1b307d19c.zip/packages/core/package-manager/src/NodePackageManager.js:117:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object.<anonymous> (/tmp/e2e-tests/gatsby-pnp/.yarn/__virtual__/gatsby-parcel-config-virtual-a1c7aa3859/4/home/circleci/project/node_modules/@parcel/source-map/dist/node.js:14:18) We're currently on 2.3.2 and also saw this for the update to 2.4.x: gatsbyjs/gatsby#35307 Any idea if that might be related or something completely unrelated? |
I opened a bug report for my issue now on the yarn repository: yarnpkg/berry#4443 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. |
🐛 bug report
I'm trying to use yarn 3 with pnp linker, and I have been experiencing many problems.
Until yesterday, an empty parcel project wouldn't run. It was reported in #7976. Version 2.5.0 fixed that.
Now I'm having problems with a nearly empty
.parcelrc
file.🎛 Configuration (.babelrc, package.json, cli command)
I'm creating an empty project with these commands:
And running the project with
yarn parcel index.html
.🤔 Expected Behavior
Project should run.
😯 Current Behavior
It's giving me this error:
I tried
yarn add -D @parcel/config-default
, and the error changes to this:Then I tried
yarn add -D @parcel/core
, and the error changed to this:🌍 Your Environment
The text was updated successfully, but these errors were encountered: