Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken with [email protected] #19

Open
chandlervdw opened this issue Dec 20, 2023 · 3 comments
Open

Broken with [email protected] #19

chandlervdw opened this issue Dec 20, 2023 · 3 comments

Comments

@chandlervdw
Copy link

chandlervdw commented Dec 20, 2023

Describe the bug

Dashboard tool crashes with sanity package version 3.23.0

To Reproduce

Steps to reproduce the behavior:

  1. npm install sanity@latest
  2. npm run dev
  3. See error

Expected behavior

Desktool should render properly.

Screenshots

image
Error: Cannot read properties of undefined (reading 'bleed')
TypeError: Cannot read properties of undefined (reading 'bleed')
    at buttonColorStyles (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-2OCGD354.js?v=da9292b9:33404:32)
    at Ne (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KOT67DZC.js?v=da9292b9:1039:14)
    at e2.generateAndInjectStyles (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KOT67DZC.js?v=da9292b9:907:19)
    at http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KOT67DZC.js?v=da9292b9:1158:88
    at http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KOT67DZC.js?v=da9292b9:1160:8
    at O2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KOT67DZC.js?v=da9292b9:1164:6)
    at renderWithHooks (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-W4SCQDMF.js?v=da9292b9:12171:26)
    at updateForwardRef (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-W4SCQDMF.js?v=da9292b9:14327:28)
    at beginWork (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-W4SCQDMF.js?v=da9292b9:15934:22)
    at beginWork$1 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-W4SCQDMF.js?v=da9292b9:19749:22)

Which versions of Sanity are you using?

Run sanity versions in the terminal and copy-paste the result here.

@sanity/cli (global)              3.23.1 (up to date)
@sanity/cli                       3.23.1 (up to date)
@sanity/code-input                 4.1.2 (up to date)
@sanity/color-input                3.1.0 (up to date)
@sanity/components                2.14.0 (up to date)
@sanity/cross-dataset-duplicator   1.2.3 (up to date)
@sanity/dashboard                  3.1.6 (up to date)
@sanity/default-layout            2.36.2 (up to date)
@sanity/default-login             2.36.2 (up to date)
@sanity/orderable-document-list    1.1.0 (up to date)
@sanity/plugin-kit                3.1.10 (up to date)
@sanity/production-preview        2.35.3 (up to date)
@sanity/scheduled-publishing       1.2.2 (up to date)
@sanity/table                      1.0.1 (up to date)
@sanity/ui                         1.9.3 (up to date)
@sanity/vision                    3.23.1 (up to date)
sanity                            3.23.1 (up to date)

What operating system are you using?

Mac OS Sonoma 14.2 (23C64)

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

npm: 10.1.0
node: v20.8.0

Additional context

Setup in sanity.config.js:

definePlugin({
 ...,
  plugins: [
    ...,
    dashboardTool({
      widgets: [
        documentListWidget({
          layout: { width: 'small' },
        }),
      ],
    })
  ]
})
@mendicantbias343
Copy link

I think the widget is crashing for any parameter passed. I tried with default params and the query params.
image

Crashing for all 3 options. ( I have published as a field)

@nico1996it
Copy link

Same issue here

@stephansama
Copy link

Same here had to remove it in order to continue to use sanity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants