script for loadStoryblokBridge
is injected twice
#943
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 was trying out the storyblok integration for astro (with v5 beta) as was noticing this warning in the console:
Caution
Uncaught SyntaxError: Identifier 'loadStoryblokBridge' has already been declared (at page.js:14:24)
During dev this not an issue, but when building an error gets also thrown:
Caution
It seems like this is related to this section:
storyblok-astro/lib/index.ts
Lines 193 to 226 in c555207
But looking at the config it seems fine and in line with the flow control here, so no idea why the script is injected both times, unless the resolved config is somehow different.
Reproduction
https://github.com/oddcelot/astro-storyblok
Steps to reproduce
No response
System Info
Used Package Manager
pnpm
Error logs (Optional)
No response
Validations
The text was updated successfully, but these errors were encountered: