ankurrsinghal/svelte-legos

svelte 5 support

niemyjski opened this issue · 2 comments

If you create a new svelte 5 starter app (out of the box supported with create app..) and add svelte legos, it completely breaks the site. I'm really only using the media queries and clipboard.

X [ERROR] No matching export in "node_modules/svelte/src/internal/index.js" for import "get_current_component"

    node_modules/svelte-legos/dist/shared/index.js:1:9:
      1 │ import { get_current_component, onDestroy } from "svelte/internal";
        ╵          ~~~~~~~~~~~~~~~~~~~~~

X [ERROR] No matching export in "node_modules/svelte/src/internal/index.js" for import "is_client"

    node_modules/svelte-legos/dist/shared/index.js:3:9:
      3 │ import { is_client } from "svelte/internal";
        ╵          ~~~~~~~~~

X [ERROR] No matching export in "node_modules/svelte/src/internal/index.js" for import "listen"

    node_modules/svelte-legos/dist/stores/mouseStore/index.js:3:9:
      3 │ import { listen } from "svelte/internal";
        ╵          ~~~~~~

X [ERROR] No matching export in "node_modules/svelte/src/internal/index.js" for import "is_client"

    node_modules/svelte-legos/dist/stores/pointerStore/index.js:2:9:
      2 │ import { is_client, listen } from "svelte/internal";
        ╵          ~~~~~~~~~

X [ERROR] No matching export in "node_modules/svelte/src/internal/index.js" for import "listen"

    node_modules/svelte-legos/dist/stores/pointerStore/index.js:2:20:
      2 │ import { is_client, listen } from "svelte/internal";
        ╵                     ~~~~~~

X [ERROR] No matching export in "node_modules/svelte/src/internal/index.js" for import "noop"

    node_modules/svelte-legos/dist/stores/timeoutStore/index.js:1:9:
      1 │ import { noop } from "svelte/internal";
        ╵          ~~~~

X [ERROR] No matching export in "node_modules/svelte/src/internal/index.js" for import "listen"

    node_modules/svelte-legos/dist/stores/windowScrollStore/index.js:3:9:
      3 │ import { listen } from "svelte/internal";
        ╵          ~~~~~~

X [ERROR] No matching export in "node_modules/svelte/src/internal/index.js" for import "listen"

    node_modules/svelte-legos/dist/stores/windowSizeStore/index.js:3:9:
      3 │ import { listen } from "svelte/internal";
        ╵          ~~~~~~

X [ERROR] No matching export in "node_modules/svelte/src/internal/index.js" for import "append"

    node_modules/svelte-legos/dist/stores/messagesStore/Message.js:1:9:
      1 │ import { append, attr, element } from "svelte/internal";
        ╵          ~~~~~~

X [ERROR] No matching export in "node_modules/svelte/src/internal/index.js" for import "append"

    node_modules/svelte-legos/dist/stores/messagesStore/MessageManager.js:1:9:
      1 │ import { append, attr, element } from "svelte/internal";
        ╵          ~~~~~~

X [ERROR] No matching export in "node_modules/svelte/src/internal/index.js" for import "listen"

    node_modules/svelte-legos/dist/actions/clickOutsideAction/index.js:1:9:
      1 │ import { listen } from "svelte/internal";
        ╵          ~~~~~~

X [ERROR] No matching export in "node_modules/svelte/src/internal/index.js" for import "append"

    node_modules/svelte-legos/dist/actions/textareaAutosizeAction/core.js:1:9:
      1 │ import { append, attr, element } from "svelte/internal";
        ╵          ~~~~~~

X [ERROR] No matching export in "node_modules/svelte/src/internal/index.js" for import "append"

    node_modules/svelte-legos/dist/actions/tooltipAction/index.js:2:9:
      2 │ import { append, attr, element, listen } from "svelte/internal";
        ╵          ~~~~~~

X [ERROR] No matching export in "node_modules/svelte/src/internal/index.js" for import "listen"

    node_modules/svelte-legos/dist/actions/tooltipAction/index.js:2:32:
      2 │ import { append, attr, element, listen } from "svelte/internal";
        ╵                                 ~~~~~~

X [ERROR] No matching export in "node_modules/svelte/src/internal/index.js" for import "append"

    node_modules/svelte-legos/dist/actions/sortableTableAction/index.js:1:9:
      1 │ import { append } from "svelte/internal";
        ╵          ~~~~~~

X [ERROR] No matching export in "node_modules/svelte/src/internal/index.js" for import "append"

    node_modules/svelte-legos/dist/actions/resizableAction/index.js:1:9:
      1 │ import { append, attr, element } from "svelte/internal";
        ╵          ~~~~~~

X [ERROR] No matching export in "node_modules/svelte/src/internal/index.js" for import "append"

    node_modules/svelte-legos/dist/actions/notifyAction/Notification.js:1:9:
      1 │ import { append, element, attr } from "svelte/internal";
        ╵          ~~~~~~

X [ERROR] No matching export in "node_modules/svelte/src/internal/index.js" for import "append"

    node_modules/svelte-legos/dist/actions/notifyAction/NotificationManager.js:1:9:
      1 │ import { append, attr, element } from "svelte/internal";
        ╵          ~~~~~~

X [ERROR] No matching export in "node_modules/svelte/src/internal/index.js" for import "append"

    node_modules/svelte-legos/dist/actions/loadingAction/Loader.js:1:9:
      1 │ import { append, attr, element } from "svelte/internal";
        ╵          ~~~~~~

X [ERROR] No matching export in "node_modules/svelte/src/internal/index.js" for import "append"

    node_modules/svelte-legos/dist/actions/alertAction/Alert.js:1:18:
      1 │ import { element, append, attr } from "svelte/internal";
        ╵                   ~~~~~~

X [ERROR] No matching export in "node_modules/svelte/src/internal/index.js" for import "append"

    node_modules/svelte-legos/dist/actions/clickToCopyAction/Clipboard.js:1:9:
      1 │ import { append, element } from "svelte/internal";
        ╵          ~~~~~~

X [ERROR] No matching export in "node_modules/svelte/src/internal/index.js" for import "listen"

    node_modules/svelte-legos/dist/actions/infiniteScrollAction/index.js:1:9:
      1 │ import { listen } from "svelte/internal";
        ╵          ~~~~~~

X [ERROR] No matching export in "node_modules/svelte/src/internal/index.js" for import "listen"

    node_modules/svelte-legos/dist/utilities/battery/index.js:4:9:
      4 │ import { listen } from "svelte/internal";
        ╵          ~~~~~~

X [ERROR] No matching export in "node_modules/svelte/src/internal/index.js" for import "listen"

    node_modules/svelte-legos/dist/utilities/preferredLanguages/index.js:3:9:
      3 │ import { listen } from "svelte/internal";
        ╵          ~~~~~~

X [ERROR] No matching export in "node_modules/svelte/src/internal/index.js" for import "listen"

    node_modules/svelte-legos/dist/utilities/screenOrientation/index.js:3:9:
      3 │ import { listen } from "svelte/internal";
        ╵          ~~~~~~

7:06:06 AM [vite] error while updating dependencies:
Error: Build failed with 25 errors:
node_modules/svelte-legos/dist/actions/alertAction/Alert.js:1:18: ERROR: No matching export in "node_modules/svelte/src/internal/index.js" for import "append"
node_modules/svelte-legos/dist/actions/clickOutsideAction/index.js:1:9: ERROR: No matching export in "node_modules/svelte/src/internal/index.js" for import "listen"
node_modules/svelte-legos/dist/actions/clickToCopyAction/Clipboard.js:1:9: ERROR: No matching export in "node_modules/svelte/src/internal/index.js" for import "append"
node_modules/svelte-legos/dist/actions/infiniteScrollAction/index.js:1:9: ERROR: No matching export in "node_modules/svelte/src/internal/index.js" for import "listen"
node_modules/svelte-legos/dist/actions/loadingAction/Loader.js:1:9: ERROR: No matching export in "node_modules/svelte/src/internal/index.js" for import "append"
...
    at failureErrorWithLog (D:\ClientApp\node_modules\esbuild\lib\main.js:1650:15)
    at D:\ClientApp\node_modules\esbuild\lib\main.js:1058:25
    at D:\ClientApp\node_modules\esbuild\lib\main.js:1526:9
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    ```

@ankurrsinghal I haven't had any time to look into this, have you had any chance to try out svelte 5, release is coming really soon