You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
config ignores peerDependencies and instead reads devDependencies #2419
This leads to errors in react-native-windows autolinking (and possibly in other scenarios) where dependencies are only declared under peerDependencies and not devDependencies, for instance in @react-native-webapis/web-storage we have the following:
In my opinion, the correct fix should be to replace devDependencies with peerDependencies, but I don't know if this will break current scenarios so we should probably keep it as is and just add peerDependencies to the list in findDependencies.ts.
Reproducible Demo
In any project, you can run the following:
yarn add @react-native-webapis/web-storage@0.2.6
cd node_modules/@react-native-webapis/web-storage
yarn react-native config
Ideally we should rely on peerDependencies not on devDependencies and I'm totally fine with adding peerDependencies to the places that we check. But removing devDependencies sounds like a breaking change 😕
There hasn't been any activity on this issue in the past 3 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 7 days.
Activity
tido64 commentedon Jun 20, 2024
@thymikee: Let me know what you think. I can submit a fix once we agree on a solution.
fix(web-storage): workaround autolinking issues
szymonrybczak commentedon Jun 20, 2024
Ideally we should rely on
peerDependenciesnot ondevDependenciesand I'm totally fine with addingpeerDependenciesto the places that we check. But removingdevDependenciessounds like a breaking change 😕github-actions commentedon Sep 20, 2024
There hasn't been any activity on this issue in the past 3 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 7 days.