Skip to content

livesync-bridge does not run on latest deno v.2.2.5 #25

@NeViNez

Description

@NeViNez

When trying to run livesync-bridge using command deno run -A main.ts, i get this error:

error: Uncaught (in promise) ReferenceError: window is not defined
export const btoa = (window && window.btoa) ? window.btoa : btoa_node;
                    ^
    at file:///path/to/livesync-bridge/lib/src/strbin.ts:53:21

    info: window global is not available in Deno 2.
    hint: Replace `window` with `globalThis`.

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