Skip to content

Package not working with Svelte@5.19.10 #112

@IgorMitev

Description

@IgorMitev

Hello,

Tried the package as a replacement for single-spa-svelte for a Svelte 5 project, could not get it to work with version 5.20.0, issues went away after downgrading Svelte to an earlier 5 version .

The issue appeared from Svelte@5.19.10, can confirm by running the repo tests and also in the other project.

Svelte@5.19.10

 ❯ src/lib/index.test.ts (1)
   ❯ index (1)
     × Should export exactly the expected objects.
 ✓ src/lib/SspaParcel/SspaParcel.test.ts (6)
 ❯ src/lib/single-spa/single-spa.svelte.test.ts (0)

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Failed Suites 1 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯

 FAIL  src/lib/single-spa/single-spa.svelte.test.ts [ src/lib/single-spa/single-spa.svelte.test.ts ]
TypeError: Cannot read properties of undefined (reading 'includes')
 ❯ validate_assignment node_modules/svelte/src/compiler/phases/2-analyze/visitors/shared/utils.js:42:24
 ❯ AssignmentExpression node_modules/svelte/src/compiler/phases/2-analyze/visitors/AssignmentExpression.js:11:2
 ❯ next node_modules/zimmerframe/src/walk.js:107:21
 ❯ _ node_modules/svelte/src/compiler/phases/2-analyze/index.js:126:3
 ❯ visit node_modules/zimmerframe/src/walk.js:101:13
 ❯ Object.next node_modules/zimmerframe/src/walk.js:63:23
 ❯ ExpressionStatement node_modules/svelte/src/compiler/phases/2-analyze/visitors/ExpressionStatement.js:37:10
 ❯ next node_modules/zimmerframe/src/walk.js:107:21
 ❯ _ node_modules/svelte/src/compiler/phases/2-analyze/index.js:126:3
 ❯ visit node_modules/zimmerframe/src/walk.js:101:13

Svelte@5.20.0

 ❯ src/lib/single-spa/single-spa.svelte.test.ts (0)
 ✓ src/lib/SspaParcel/SspaParcel.test.ts (6)
 ❯ src/lib/index.test.ts (1)
   ❯ index (1)
     × Should export exactly the expected objects.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Failed Suites 1 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯

 FAIL  src/lib/single-spa/single-spa.svelte.test.ts [ src/lib/single-spa/single-spa.svelte.test.ts ]
TypeError: Cannot read properties of undefined (reading 'some')
 ❯ validate_assignment node_modules/svelte/src/compiler/phases/2-analyze/visitors/shared/utils.js:45:24
 ❯ AssignmentExpression node_modules/svelte/src/compiler/phases/2-analyze/visitors/AssignmentExpression.js:11:2
 ❯ next node_modules/zimmerframe/src/walk.js:107:21
 ❯ _ node_modules/svelte/src/compiler/phases/2-analyze/index.js:126:3
 ❯ visit node_modules/zimmerframe/src/walk.js:101:13
 ❯ Object.next node_modules/zimmerframe/src/walk.js:63:23
 ❯ ExpressionStatement node_modules/svelte/src/compiler/phases/2-analyze/visitors/ExpressionStatement.js:37:10
 ❯ next node_modules/zimmerframe/src/walk.js:107:21
 ❯ _ node_modules/svelte/src/compiler/phases/2-analyze/index.js:126:3
 ❯ visit node_modules/zimmerframe/src/walk.js:101:13

Noticed similar issues in the Svelte repo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy