Closed MKlblangenois closed 8 months ago
Hi is there any update on this issue, I am facing the same. How can we disable this log. My storyblok integration is working fine I just don't want this log. Also getting from react sdk.
Hi @samducker I'm unable to reproduce the error on my end. Could you please provide a code repository or steps to help me better understand and investigate the issue?
Hi @MKlblangenois @samducker I'll close this issue as I see this issue thread doesn't look active. Please feel free to re-open when you still face the same issue with additional reproduction sources as my colleague asked above.
Describe the issue you're facing
I'm getting the error "storyblokApiInstance has not been initialized correctly" in console.log on each page of the site
Reproduction
https://astro-espacedupossible-git-feature-canary-110-mediakod.vercel.app/
Steps to reproduce
/**
@return {any} The Storyblok stories. */ export const getStories = async (filters: ISbStoriesParams = {}) => { const params: ISbStoriesParams = { version: "draft", token: import.meta.env.PUBLIC_STORYBLOK_TOKEN, resolve_relations: ["post.categories"], cv: +new Date(), ...filters, };
try { const { data } = await client.get("cdn/stories", params);
} catch (error) { console.error(error); }
return false; };
Here's my
astro.config.mjs
:System Info
Used Package Manager
npm
Error logs (Optional)
storyblokApiInstance has not been initialized correctly
Validations