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
@sanity/hierarchical-document-list has @nosferatu500/react-sortable-tree and "react-dnd": "16.0.1" in dependencies, however @nosferatu500/react-sortable-tree expects react-dnd@14 in peerDependencies, which causes a crash due to failed imports from react-dnd
If it's OK with your setup and guidelines, you can add shamefully-hoist=true to your Sanity Studio's .npmrc in order to resolve the packages until a fix is provided. https://pnpm.io/npmrc#shamefully-hoist
This enforces the specified version across all dependencies and sub-dependencies. No need to change settings in the .npmrc.
To me it looks like a better fix would be to fix the version numbers in the package.json of this package. This package seems to be incompatible with versions >14 of react-dnd.
Describe the bug
Crashes due to unresolved
DragSource
import:To Reproduce
dependencies:
Description
@sanity/hierarchical-document-list has
@nosferatu500/react-sortable-tree
and"react-dnd": "16.0.1"
in dependencies, however@nosferatu500/react-sortable-tree
expects react-dnd@14 in peerDependencies, which causes a crash due to failed imports from react-dndExpected behavior
Plugin is compatible with [email protected] or has react-dnd@14 in dependencies
Full error log
The text was updated successfully, but these errors were encountered: