Skip to content

Fetch is not supported without Node.js #8

@CNSeniorious000

Description

@CNSeniorious000

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions