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

Fetch is not supported without Node.js #8

Open
CNSeniorious000 opened this issue Nov 10, 2024 · 0 comments
Open

Fetch is not supported without Node.js #8

CNSeniorious000 opened this issue Nov 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@CNSeniorious000
Copy link

Describe the bug

When using happy-dom-without-node in the browser, I found that the goto() method and other methods that mimic browser loading are not working. The error message is:

Fetch is not supported without Node.js.

I would like to know if this is intentional, which means that this library only provides an implementation of Document without supporting dynamic loading methods.

To Reproduce

Steps to reproduce the behavior:

  1. Include happy-dom-without-node in the browser.
  2. Attempt to call the goto() method.
  3. Observe the error message.

Expected behavior

I expected to be able to use the goto() method and other dynamic loading methods without encountering an error.

Device:

  • OS: [Windows 11]
  • Browser: [Edge]

Additional context

Are there plans to support dynamic loading functionality? Or if there are any recommended alternative solutions.

@CNSeniorious000 CNSeniorious000 added the bug Something isn't working label Nov 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant