Skip to content
Discussion options

You must be logged in to vote

Yes, for versions of slate-react that declare slate-dom as a peer dependency, declare it in the consuming application's dependencies too. For example, the published package metadata I checked is:

npm view slate-react@0.133.8 peerDependencies

It lists slate-dom: '>=0.133.6' alongside slate: '>=0.121.0' and the React peers. A compatible versioned set I installed and tested was:

npm install slate@0.133.7 slate-react@0.133.8 slate-dom@0.133.6

npm versions that install peer dependencies automatically may make an omitted direct dependency appear to work, but declaring it explicitly records the application's dependency and avoids relying on that behavior. For an existing project, check the peer …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pcwa-ahendricks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants