Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken in Deno 2.0 #27

Open
gibbygano opened this issue Oct 13, 2024 · 5 comments
Open

Broken in Deno 2.0 #27

gibbygano opened this issue Oct 13, 2024 · 5 comments

Comments

@gibbygano
Copy link

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.

@gibbygano
Copy link
Author

I went ahead and left an issue on the hackle repository just in case someone is monitoring the issues there still.

@notangelmario
Copy link
Collaborator

hi @gibbygano! this issue has nothing to do with fresh_seo. we don't even use hackle :)

@gibbygano
Copy link
Author

@notangelmario When I search the repo hackle comes up and when I removed fresh-seo the error was resolved and the project ran.

image

@notangelmario
Copy link
Collaborator

huh. very weird. i'll look into it. reopening...

@notangelmario notangelmario reopened this Oct 13, 2024
@Hexagon
Copy link

Hexagon commented Nov 5, 2024

+1, unable to run a site on Deno 2 because of this hackle dependency

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants