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
This code was successfully return the story data before the upgrade
Current Behavior
Errors below are causing the build to fail
Error: storyblokApiInstance has not been initialized correctly
at zn (.../NM/node_modules/@storyblok/astro/dist/storyblok-astro.es.js:1182:11)
at eval (.../NM/src/data/siteData.js:7:65)
at eval (...NM/src/data/siteData.js:35:3)
The text was updated successfully, but these errors were encountered:
MrJonoCES
changed the title
'storyblokApiInstance has not been initialized correctly' error after upgrading to Astro 5
Error after upgrading to Astro 5
Dec 21, 2024
@MrJonoCES Could you provide a minimal code example for me to test? I tried your code on the @storyblok/astro SDK with the package version you mentioned, along with your baseData code, and it seems to work fine.
However, I’d like to highlight that there’s currently a bug related to types in the latest SDK release. This issue will be fixed shortly—I’ve already created a PR for it.
Looking forward to your test case to investigate further!
@dipankarmaikap thanks for your help. I went through the update process on a couple other sites using the exact same baseData setup and they work fine so I think the problem lies elsewhere. The only thing different in this project is that one component uses react but that's totally unrelated to this component. Back to the drawing board
Expected Behavior
This code was successfully return the story data before the upgrade
Current Behavior
Errors below are causing the build to fail
Steps to Reproduce
Installed the following packages
The text was updated successfully, but these errors were encountered: