hierarchical-document-list icon indicating copy to clipboard operation
hierarchical-document-list copied to clipboard

Install and build errors on v2.0.0 (latest) of plugin

Open apokaliptis opened this issue 11 months ago • 1 comments

Describe the bug

Issues with peer dependencies found on install ([email protected]), and two Vite build errors (DragSource, DropTarget).

To Reproduce

Steps to reproduce the behavior:

  1. For install error: pnpm add @sanity/hierarchical-document-list
  2. For build error (after above): Add hierarchicalDocumentList and hierarchyTree per installation instructions. Run: pnpm run dev and open browser to http://localhost:3333/

Expected behavior

To install into my Sanity project without errors and run correctly.

Screenshots

Screenshot 2024-03-15 105719 Screenshot 2024-03-15 112625

Which versions of Sanity are you using?

@sanity/cli (global)                3.34.0 (up to date)
@sanity/eslint-config-studio         3.0.1 (up to date)
@sanity/hierarchical-document-list   2.0.0 (up to date)
@sanity/icons                       2.11.2 (up to date)
@sanity/ui                          2.0.10 (up to date)
@sanity/vision                      3.34.0 (up to date)
sanity                              3.34.0 (up to date)

What operating system are you using?

Windows 11

Which versions of Node.js / npm are you running?

Node v21.7.0 pnpm 8.15.4 (via Corepack)

apokaliptis avatar Mar 15 '24 16:03 apokaliptis

Installing with NPM seems to work, but I've been using pnpm with SvelteKit on the front end and Sanity on the backend up until now, so having to switch to a different package manager for Sanity is less than ideal.

apokaliptis avatar Mar 18 '24 15:03 apokaliptis