Skip to content

Svelte stores + web worker = global is not defined #4545

@stefan-pdx

Description

@stefan-pdx

Hello!

I'm trying to create a Svelte store in a Web Worker but am receiving this error:

Uncaught ReferenceError: global is not defined

This seems to occur in globals.ts. In spirit of #1491, can window be replaced with self since Web Workers don't have access to window?

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting submitterneeds a reproduction, or clarification

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions