-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[Bug]: incorrectly configured peer dependencies (remix-run/node, remix-run/express) #1707
Comments
I'm also encountering this issue and can't run get remix working with yarn berry without
|
In addition to the packages @akomm mentioned in the original issue, I've also got
|
And, after adding all the aforementioned packages to my
The final temporary fix that seems to resolve dependencies without any warnings is this (in packageExtensions:
'@remix-run/dev@*':
peerDependencies:
react: '*'
react-dom: '*'
'@remix-run/express@*':
peerDependencies:
react: '*'
react-dom: '*'
'@remix-run/node@*':
peerDependencies:
react: '*'
react-dom: '*'
'@remix-run/serve@*':
peerDependencies:
react: '*'
react-dom: '*' |
So it seems all of those ☝️ packages' |
Temporary fix for remix-run/remix#1707.
Thats type of issue the warning by yarn tries to prevent. It just by chance working usually, because you don't require the package directly. The moment its used by you or via tooling directly somwhere its a prob. Hence need to either provide the dependency or pass if further as peer in |
This is fixed by #4801 |
🤖 Hello there, We just published version Thanks! |
What version of Remix are you using?
1.1.3
What version of Node are you using? Minimum supported version is 14.
14.15.0
Steps to Reproduce
Expected Behavior
Install of packages without peer dependency warnings
Actual Behavior
IDs might vary over time.
Reason & Solution to this issue:
@remix-run/node
and@remix-run/express
depend on@remix-run/server-runtime
.@remix-run/server-runtime
depends onreact
andreact-dom
as PEER@remix-run/node
and@remix-run/express
must either provide the PEER as dependency, or delegate the peer dependency further, addingreact
andreact-dom
as peer dependency. The later is probably the intended behavior.NPM might not give the warning (did not test, but since the issue is there I assumed you missed it because using NPM), but yarn spots an issue correctly. Its a misconception that peer dependencies are implicitly delegated over aux libraries like in this example
@remix-run/node
and@remix-run/express
.The problem with this, from my point unresolvable warnings around peer dependencies, it makes it harder to spot when a real peer issue comes up I'm really responsible for. Having useless warnings all the time conditions to ignore and overlook issues.
The text was updated successfully, but these errors were encountered: