Skip to content

Broken in Deno 2.0 #27

@gibbygano

Description

@gibbygano

After upgrading your environment to Deno 2.0 project is unable to build, showing error:

error: Uncaught (in promise) ReferenceError: window is not defined
if (!window.hackle) window.hackle = makeHackle()
^
    at https://deno.land/x/hackle@1.1.1/init.ts:9:1

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

Pretty clear from the error message, hackle uses window which is no longer valid in Deno 2.0.
Hackle itself hasn't been updated since January of 2021: Hackle on Github.
Not sure if I'd hold my breathe for an update from them.

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