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

Error: lifecycle_function_unavailable #39

Open
ptrxyz opened this issue Jan 2, 2025 · 2 comments
Open

Error: lifecycle_function_unavailable #39

ptrxyz opened this issue Jan 2, 2025 · 2 comments

Comments

@ptrxyz
Copy link

ptrxyz commented Jan 2, 2025

I tried this and created a basic component, didn't change anything, yet this happens:

image

Any idea what's wrong here? I mean, your cli creates code that should not run on the server:

image

@ptrxyz
Copy link
Author

ptrxyz commented Jan 2, 2025

Some info: I am using Svelte 5 and the node adapter is used in my svelte config (in case that matters somehow)

@brenoliradev
Copy link
Owner

brenoliradev commented Jan 2, 2025

Hey! Which embedding option did you use to create your component?

Also, which version of svelte-standalone are you using? You can check it with "standalone -v"

I'm using npm i svelte-standalone@latest for svelte 4 and npm i svelte-standalone@beta for Svelte 5. I'm still adding support/migrating so expect it to be buggy - it works, but has some edges.

About this error, it should be due to the changes from new mount and previous new Component syntax so all of the instances that calls window[instance].start or window[instance].stop should occur in the broswer (client-side).

I tried to replicate your error while using svelte-standalone@beta and I couldn't.

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