Skip to content

Make compatible with Svelte 5 #86

@watzon

Description

@watzon

Describe the bug
Attempting to use in a Svelte 5 project with runes enabled results in the following error:

✘ [ERROR] node_modules/svelte-seo/index.svelte:3:2 Cannot use `export let` in runes mode — use `$props()` instead [plugin vite-plugin-svelte:optimize-svelte]

    node_modules/svelte-seo/index.svelte:3:2:
      3 │  export let title = undefined;
        ╵   ^

  The plugin "vite-plugin-svelte:optimize-svelte" was triggered by this import

    node_modules/svelte-seo/index.js:1:22:
      1 │ import component from "./index.svelte";
        ╵                       ~~~~~~~~~~~~~~~~

To Reproduce
Steps to reproduce the behavior:

  1. Install in a Svelte 5 project
  2. Use as described in docs

Expected behavior
It should work.

Desktop (please complete the following information):

  • OS: macOS
  • Browser: Chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions