Spectrum component dependency issues #2195
Unanswered
carolframpton
asked this question in
Q&A
Replies: 1 comment 3 replies
-
First, thank you for coming with an idea. I think we'd need to list it both as a peerDependency and dependency, would that defeat the purpose of listing it as a peer though? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In our packages.json we had our react-aria/interactions pinned at "@react-aria/interactions": "3.4.0".
We recently upgraded from "@react-spectrum/table": "3.0.0-beta.0" to "@react-spectrum/table": "3.0.0-beta.1". This new version lists "@react-aria/interactions": "3.5.0" as a dependency.
We got no warning from npm and it took awhile to figure out what broke.
At our scrum it was suggested that in
packages.json
you should be listing table's dependencies aspeerDependencies
rather thandependencies
so npm will complain.This is not the first time we've lost a good deal of time due to a Spectrum dependency issue and we'd like to try to figure out how to avoid anymore going forward.
Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions