Skip to content

Error: Dynamic require of "./workerBundle" is not supported #84

@scriptex

Description

@scriptex

Hello and thank you for your continued support on this library.

Since you published the last version 4.1.2 or maybe since 4.1.0 I've been experiencing an issue with the Worker.

The error being thrown is

[Error] Error: Dynamic require of "./workerBundle" is not supported

And this error results in

Unhandled Promise Rejection: DataCloneError: The object can not be cloned.

which is kind of expected.

These errors result in empty diffs which is a breaking change.

I see you have unpublished commits related to how the Worker is being bundled and used so I am guessing somebody else also experienced similar issues.

Is there any ETA on a fix for this?

FWIW I am using Vite v6.4.1. and I cannot switch to a different bundler.

Might I suggest a workaround for the future - it might be a good idea to add a setting which completely disables usage of Workers in favor of the fallback() function

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