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

undefined window object #9

Open
ktandun opened this issue Aug 23, 2024 · 0 comments
Open

undefined window object #9

ktandun opened this issue Aug 23, 2024 · 0 comments

Comments

@ktandun
Copy link

ktandun commented Aug 23, 2024

When running gleam test with target=javascript it throws window undefined error

    Running frontend_test.main
file:///Users/kenzietandun/dev/traveller/frontend/build/dev/javascript/modem/modem.ffi.mjs:12
const initial_location = window?.location?.href;
                         ^

ReferenceError: window is not defined
    at file:///Users/kenzietandun/dev/traveller/frontend/build/dev/javascript/modem/modem.ffi.mjs:12:26
    at ModuleJob.run (node:internal/modules/esm/module_job:234:25)
    at async ModuleLoader.import (node:internal/modules/esm/loader:473:24)
    at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:123:5)
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

1 participant