Missing "./components/StoryblokComponent.astro" specifier in "@storyblok/astro" package #637
Closed
1 task done
Labels
pending-author
[Issue] Awaiting further information or action from the issue author
pending-triage
[Issue] Ticket is pending to be prioritised
Describe the issue you're facing
I have followed Storyblok's guide on integrating with Astro (seems to be nearly identical to the guide found on docs.astro.build) I'm met with the following error:
I found the following three errors in
@storyblok/astro/components/StoryblokComponent.astro
:Error on Line 2
Error on Line 3
Error on Line 24
I'm new to Storyblok and its codebase so I don't have any solutions off-hand, but I will continue digging into this on my own. That being said, any help would be appreciated.
Reproduction
https://github.com/johnnymcneil/storyblok-astro-bug
Steps to reproduce
Setup Storyblok
https://localhost:4321
as default preview URLblogPost
with the following fieldstitle
- A text fielddescription
- A text fieldcontent
- A rich text fieldblogPost
content type namedtest-post
. Fill in the fields with any text you like.Prepare new Astro project
npm create astro@latest
.env
file in the root of your project with the following variable, whereYOUR_ACCESS_TOKEN
is the access token found in the Storyblok space settings:.env
npm install @storyblok/astro vite
npm install -D @vitejs/plugin-basic-ssl
astro.config.mjs
to include the Storyblok integration and vite plugin:astro.config.mjs
src/storyblok
src/storyblok/BlogPost.astro
src/storyblok/BlogPost.astro
src/pages/
directory namedtest-post.astro
with the following content:src/pages/test-post.astro
npx astro dev
Finally, attempt to load your test content. The error will display.
System Info
Used Package Manager
npm
Error logs (Optional)
No response
Validations
The text was updated successfully, but these errors were encountered: