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 hydrating TypeError: $.mark_module_start is not a function #10581

Closed
CodexKI opened this issue Feb 20, 2024 · 4 comments
Closed

Error hydrating TypeError: $.mark_module_start is not a function #10581

CodexKI opened this issue Feb 20, 2024 · 4 comments
Labels
awaiting submitter needs a reproduction, or clarification
Milestone

Comments

@CodexKI
Copy link

CodexKI commented Feb 20, 2024

Describe the bug

// fa.svelte (Svelte v5.0.0-next.64)
// Note: compiler output will change before 5.0 is released!
import "/node_modules/.vite/deps/svelte_internal_disclose-version.js?v=ac6295d8";

$.mark_module_start(Fa);
import "/src/libs/fa/fa.svelte?svelte&type=style&lang.css";

i export this this an index file in "fa" folder
import Fa from './fa.svelte';
export default Fa;
export {
Fa
};

Reproduction

Astro 4.4
svelte 5 preview 64

Logs

No response

System Info

Astro 4.4
svelte 5 preview 64

Severity

blocking an upgrade

@Conduitry
Copy link
Member

Please provide a proper minimal reproduction in the form of a link to a repository.

From that error message, it sounds like you two versions of Svelte floating around simultaneously - one being used to compile your components, and one whose runtime it's trying to use.

@Conduitry Conduitry added the awaiting submitter needs a reproduction, or clarification label Feb 21, 2024
@CodexKI
Copy link
Author

CodexKI commented Feb 21, 2024

for now i can't repoduce it, but i found this problema with astro
https://stackblitz.com/edit/withastro-astro-m4ah2m

@dummdidumm
Copy link
Member

dummdidumm commented Feb 21, 2024

The error I see in the console in the Stackblitz repro is different. The API of mount changed, you need unmount now to destroy the component, cc @bluwy

@dummdidumm
Copy link
Member

Closing this since there's no reproduction, my guess is that there were conflicting Svelte versions. The Astro bug should be fixed now.

@dummdidumm dummdidumm closed this as not planned Won't fix, can't repro, duplicate, stale Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting submitter needs a reproduction, or clarification
Projects
None yet
Development

No branches or pull requests

3 participants