-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Describe the bug
The plugin tries to find sanity/structure
, but the package is now named @sanity/structure
.
Which versions of Sanity are you using?
^3.21.3
What operating system are you using?
MacOS
Which versions of Node.js / npm are you running?
10.2.4
v20.11.0
Error message
sanity:dev: The plugin "vite:dep-pre-bundle" was triggered by this import
sanity:dev:
sanity:dev: ../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]_react@18_dl6nsyrbpmk4iah6t67kasu2im/node_modules/sanity-plugin-utils/lib/index.esm.js:5:30:
sanity:dev: 5 │ import { usePaneRouter } from 'sanity/structure';
sanity:dev: ╵ ~~~~~~~~~~~~~~~~~~
sanity:dev:
sanity:dev: 3:56:38 AM [vite] error while updating dependencies:
sanity:dev: Error: Build failed with 2 errors:
sanity:dev: ../../node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1373:21: ERROR: [plugin: vite:dep-pre-bundle] Missing "./structure" specifier in "sanity" package
sanity:dev: ../../node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1373:21: ERROR: [plugin: vite:dep-pre-bundle] Missing "./structure" specifier in "sanity" package
Metadata
Metadata
Assignees
Labels
No labels