Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read from private field in Svelte 5 component in Astro. #51

Open
JojokCreator opened this issue Dec 7, 2024 · 1 comment
Open

Comments

@JojokCreator
Copy link

Epic package by the way!

I have been using this in my svelte components in my Asto site but one has started throwing an error since update to Astro 5, Svelte 5 & Vite 6.

    at __typeError (chunk-E2JEHENU.js?v=c02cd754:6:9)
    at __accessCheck (chunk-E2JEHENU.js?v=c02cd754:19:62)
    at __privateGet (chunk-E2JEHENU.js?v=c02cd754:20:46)
    at Object.get [as open] (chunk-B7RU2S4X.js?v=c02cd754:714:18)
    at HTMLAnchorElement.openGallery (BiggerPicture.svelte:87:7)

I'm not exactly sure whether this is an Astro error or an issue with BiggerPicture, to trouble shoot this? Any chance you have an idea to send me in the right direction?

Minimum example here https://stackblitz.com/edit/withastro-astro-fio3qbsq

npm run dev the lightbox should appear on the masonary on click, error in console.

@henrygd
Copy link
Owner

henrygd commented Dec 7, 2024

I think it may be a conflict with Svelte 5 generally.

Please import bigger-picture or bigger-picture/vanilla for now if one of those works.

I removed the Svelte instructions from the readme and will investigate further when I have time. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants