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
Hi there, i really hope i didn't overlooked something here. Im currently facing an issue since storyblok version 4.5 after the update for Nuxt 3 Stable. Does everyone else facing this issue?
If clicking on an element inside Storyblok Visual Editor the desired Blok does not open in the sidepanel. The console shows following error:
(anonymous) @ storyblok-v2-latest.js:1 handleOpenBlok @ storyblok-v2-latest.js:1 handleWindowClick @ storyblok-v2-latest.js:1 VM1789:1 Uncaught SyntaxError: "undefined" is not valid JSON at JSON.parse (<anonymous>) at storyblok-v2-latest.js:1:11649 at m.handleOpenBlok (storyblok-v2-latest.js:1:11659) at m.handleWindowClick (storyblok-v2-latest.js:1:11405)
Otherwise, while opening a blok manually and changing the bloks content the visual editor updates his content. The Bug only affects the selecting / clicking on a blok.
Expected Behavior
Expect storyblok to open desired block at sidepanel.
Additional Information
Node: v16.18.0
Package.json:
"@storyblok/nuxt": "^4.6.0",
"nuxt": "^3.0.0",
Implementation:
const storyStore = useStoryStore();
await storyStore.fetchCurrentStory();
const data = ref(storyStore.getCurrentStory);
onMounted(() => {
const runtimeConfig = useRuntimeConfig();
const route = useRoute();
// If version is draft, load the bridge to support storybloks preview
const version = route.query._storyblok || runtimeConfig.NODE_ENV === 'development' ? 'draft' : 'published';
if (version === 'draft') {
useStoryblokBridge(data.value.story.id, (evStory) => {
data.value.story = evStory;
});
}
});
Since this is no longer an issue in the up-to-date projects, I'm closing the issue. If someone ever faces a problem with the Visual Preview you can always open a new issue with the version you are using currently! 🎉
Hi there, i really hope i didn't overlooked something here. Im currently facing an issue since storyblok version 4.5 after the update for Nuxt 3 Stable. Does everyone else facing this issue?
If clicking on an element inside Storyblok Visual Editor the desired Blok does not open in the sidepanel. The console shows following error:
(anonymous) @ storyblok-v2-latest.js:1 handleOpenBlok @ storyblok-v2-latest.js:1 handleWindowClick @ storyblok-v2-latest.js:1 VM1789:1 Uncaught SyntaxError: "undefined" is not valid JSON at JSON.parse (<anonymous>) at storyblok-v2-latest.js:1:11649 at m.handleOpenBlok (storyblok-v2-latest.js:1:11659) at m.handleWindowClick (storyblok-v2-latest.js:1:11405)
Otherwise, while opening a blok manually and changing the bloks content the visual editor updates his content. The Bug only affects the selecting / clicking on a blok.
Expected Behavior
Expect storyblok to open desired block at sidepanel.
Additional Information
Node: v16.18.0
Package.json:
Implementation:
Pinia Store for stories:
Nuxt Config
The text was updated successfully, but these errors were encountered: