Skip to content

svelte5: "TypeError: act is not a function" on 4.2.2 #342

Closed
@sureshjoshi

Description

@sureshjoshi

Hi!

Just tried out 4.2.2 with Svelte 5 and I am getting a "TypeError: act is not a function".

I believe the corresponding code is this:

import { act, cleanup } from './svelte5.js'

Because svelte5.js exports render and cleanup, not act.

Locally, I've imported act from pure.js, but I don't know if that's the intention (otherwise I would have PR'd instead of just opening a ticket).

import { act } from "./pure.js"
import { cleanup } from './svelte5.js'

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