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

code-input is not working with bun #88

Open
flayks opened this issue Nov 17, 2023 · 0 comments
Open

code-input is not working with bun #88

flayks opened this issue Nov 17, 2023 · 0 comments

Comments

@flayks
Copy link

flayks commented Nov 17, 2023

Describe the bug

I get this error in the Studio when opening a block with a code input:

Error: FormBuilder: missing context value
    at useFormBuilder (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-K65K2GDM.js?v=d80df4eb:5529:11)
    at PrimitiveField$1 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-K65K2GDM.js?v=d80df4eb:7564:48)
    at renderWithHooks (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-Z5LEWLVY.js?v=d80df4eb:17270:26)
    at mountIndeterminateComponent (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-Z5LEWLVY.js?v=d80df4eb:20020:21)
    at beginWork (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-Z5LEWLVY.js?v=d80df4eb:21001:22)
    at beginWork$1 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-Z5LEWLVY.js?v=d80df4eb:24848:22)
    at performUnitOfWork (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-Z5LEWLVY.js?v=d80df4eb:24293:21)
    at workLoopSync (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-Z5LEWLVY.js?v=d80df4eb:24232:13)
    at renderRootSync (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-Z5LEWLVY.js?v=d80df4eb:24211:15)
    at recoverFromConcurrentError (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-Z5LEWLVY.js?v=d80df4eb:23831:28)

To Reproduce

Steps to reproduce the behavior:

bun i @sanity/code-input

defineField({
    name: 'icon',
    title: 'SVG icon',
    type: 'code',
    options: {
        language: 'html',
    },
}),

Expected behavior

It should work I guess 😅

Which versions of Sanity are you using?

3.20.0

What operating system are you using?

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

10.2.3
v20.9.0

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

1 participant