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
I should be able to use Sanity visual editor with nuxt.
What is actually happening?
I am getting error while trying to view my nuxt site using sanity studio in the presentation tab.
500
"undefined" is not valid JSON
at JSON.parse ()
at setupFetcher (http://localhost:3000/_nuxt/@fs/home/crazypanda/workspaces/nuxt-sanity-visual-editor-example/node_modules/@nuxtjs/sanity/dist/runtime/composables/visual-editing.js?v=ccddcf37:125:14)
at useSanityQuery (http://localhost:3000/_nuxt/@fs/home/crazypanda/workspaces/nuxt-sanity-visual-editor-example/node_modules/@nuxtjs/sanity/dist/runtime/composables/visual-editing.js?v=ccddcf37:155:7)
at http://localhost:3000/_nuxt/app.js:18:98
at withAsyncContext (http://localhost:3000/_nuxt/@fs/home/crazypanda/workspaces/nuxt-sanity-visual-editor-example/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js?v=ccddcf37:3396:19)
at setup (http://localhost:3000/_nuxt/app.js:18:74)
at callWithErrorHandling (http://localhost:3000/_nuxt/@fs/home/crazypanda/workspaces/nuxt-sanity-visual-editor-example/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js?v=ccddcf37:197:19)
at setupStatefulComponent (http://localhost:3000/_nuxt/@fs/home/crazypanda/workspaces/nuxt-sanity-visual-editor-example/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js?v=ccddcf37:7923:25)
at setupComponent (http://localhost:3000/_nuxt/@fs/home/crazypanda/workspaces/nuxt-sanity-visual-editor-example/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js?v=ccddcf37:7884:36)
at mountComponent (http://localhost:3000/_nuxt/@fs/home/crazypanda/workspaces/nuxt-sanity-visual-editor-example/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js?v=ccddcf37:5240:7)
Additional information
Checklist
I have tested with the latest Nuxt version and the issue still occurs
I have tested with the latest module version and the issue still occurs
I have searched the issue tracker and this issue hasn't been reported yet
Screenshot
The text was updated successfully, but these errors were encountered:
Notes
Version
module: 1.13.2
nuxt: 3.14.1592
Nuxt configuration
Reproduction
https://github.com/cadamsdev/nuxt-sanity-visual-editor-example
https://github.com/cadamsdev/nuxt-sanity-visual-editor-example/blob/main/apps/cms/sanity.cli.ts#L5
https://github.com/cadamsdev/nuxt-sanity-visual-editor-example/blob/main/apps/cms/sanity.config.ts#L11
https://github.com/cadamsdev/nuxt-sanity-visual-editor-example/blob/main/apps/web/nuxt.config.ts#L7
https://www.sanity.io/manage/personal/project/<project_id>/api#tokens
NUXT_SANITY_VISUAL_EDITING_TOKEN
from step 4Link:
https://github.com/cadamsdev/nuxt-sanity-visual-editor-example
What is expected?
I should be able to use Sanity visual editor with nuxt.
What is actually happening?
I am getting error while trying to view my nuxt site using sanity studio in the presentation tab.
Additional information
Checklist
Screenshot
The text was updated successfully, but these errors were encountered: