-
-
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
yarn peer dependency issues, build fails when trying to install / start parcel dev server #7880
Comments
I can manually add
|
I am build a library with several entrypoints using I only have a devDependency on Parcel, no dependency on
|
From my testing, this error is only blocking if yarn is using strict pnp mode. Here's yarn's documentation page about pnp mode: https://yarnpkg.com/features/pnp The issue would probably be fixed by marking
|
The reason it's a peer dependency in the first place is that these four packages call a function in parcel/packages/core/cache/src/FSCache.js Line 117 in 80c728c
and if they there are multiple instances of @parcel/core involved, then there'll be an error at runtime become something wasn't registered.
|
Hmm... that's what I had feared. I'm surprised that yarn considers this an error, as this is a very valid use-case of peerDependancies. |
For now, if anyone else runs into this issue while a long-term solution brews, I'd recommend looking at this part of the docs: https://yarnpkg.com/getting-started/migration#fix-dependencies-with-packageextensions I used that to generate this text to put in my packageExtensions:
"@parcel/[email protected]":
dependencies:
"@parcel/core": "2.4.1"
"@parcel/[email protected]":
dependencies:
"@parcel/core": "2.4.1"
"@parcel/[email protected]":
dependencies:
"@parcel/core": "2.4.1"
"@parcel/[email protected]":
dependencies:
"@parcel/core": "2.4.1" Keep in mind that the above is a short-term solution. |
The issue here, from Yarn's perspective, is that Some of this was already fixed in 2.5.0, via #7977, including the specific case reported here. But |
This is still an issue, which is unfortunate as these warnings are the default behavior when running the recommended setup command with the current version of Yarn |
See #6727 as well |
Is there a roadmap or any other discussions around this? I have the privilege of some greenfield work and very much want Parcel combined with no-install Yarn but would rather not distribute a library to teams with workarounds in it. |
See #9070 and #6727 (comment) . These should cover all remaining problems |
🐛 bug report
I am trying to install parcel using the guide at https://parceljs.org/getting-started/webapp/ and when I perform a yarn install, I get several peer dependency issues. When I run
yarn parcel ./src/index.html
, I get a build error:🎛 Configuration (.babelrc, package.json, cli command)
yarn version: 3.2.0
nodejs version: v16.14.2
parcel version: 2.4.0
package.json:
ran:
🤔 Expected Behavior
😯 Current Behavior
I get the following output from
yarn install
:Output from
yarn parcel ./src/index.html
:The dev server at http://localhost:1234 is inaccessible from Chrome:
"This site can't be reached. localhost refused to connect"
💁 Possible Solution
🔦 Context
I'm trying to deploy my React app using netlify, and this was reviewed favorably as a simple, zero-config, way to do that.
💻 Code Sample
🌍 Your Environment
The text was updated successfully, but these errors were encountered: