-
Notifications
You must be signed in to change notification settings - Fork 105
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
Svelte 5: Deprecation Warning: context="module" is deprecated, use the module attribute instead #649
Comments
The warning is harmless but I'll fix it before the release of 5.0. |
@pngwn Svelte 5.0 is released, I know it's harmless, but it would be nice not to have console (and therefore CI) being spammed with the warning <3 |
Is there any update on the issue? I manually patched |
Yeah I forgot about this. Project is still maintained but this is relatively harmless (although annoying). |
You can do this to work around it in Svelte 5. See this comment. // svelte.config.js
const config = {
...
compilerOptions: {
warningFilter: (warning) =>
warning.code !== "script_context_deprecated",
}
} |
Description:
I am encountering deprecation warnings when using Svelte 5. The warnings indicate that context="module" is deprecated and should be replaced with the module attribute svelte 5 preview documentation.
The warnings occur when the markdown files are loaded from the JSON:
+page.server.ts
console
Environment:
Svelte 5
Node.js > 20
MDsveX 0.12.3
Expected Behavior:
No deprecation warnings should appear if the correct attribute is used.
Actual Behavior:
Deprecation warnings appear for each instance of context="module".
The text was updated successfully, but these errors were encountered: