Skip to content

Package not working with [email protected] #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 [email protected], can confirm by running the repo tests and also in the other project.

[email protected]

 ❯ 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

[email protected]

 ❯ 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