Skip to content

Dynamic import fails in DevTools inspector (invalid host defined options) #35307

Closed as not planned

Description

@blikest
  • Version: 14.10.1
  • Platform: linux
  • Subsystem:

What steps will reproduce the bug?

On a regular (client-side) DevTools panel console and from REPL, i can use import("./index.js").then(console.log) no problem.
When i try to do the same in an instance of chrome's node inspector connected to localhost:9229 though, i get

TypeError: Invalid host defined options
    at <anonymous>:1:1

How often does it reproduce? Is there a required condition?

everytime, while running a node process with --inspect flag
(node --inspect)

What is the expected behavior?

importing the module present on the execution path.

What do you see instead?

"invalid host defined options" error

Additional information

error referenced but solved indirectly in webpack/webpack-cli#1274 and react/create-react-app#2271

Activity

  1. changed the title [-]Invalid host defined options error on dynamic import in DevTools inspector[/-] [+]Dynamic import fails in DevTools inspector (invalid host defined options)[/+] on Sep 23, 2020
  2. added
    inspectorIssues and PRs related to the V8 inspector protocol.
    on Sep 26, 2020
  3. DavidPeicho commented on Oct 18, 2022

    @DavidPeicho

    Getting the same using the embedder API. Is there anything to setup in the environment for this to work?

  4. github-actions commented on Jun 27, 2026

    @github-actions
    Contributor

    This issue has been marked as stale due to 210 days of inactivity.
    It will be automatically closed in 30 days if no further activity occurs. If this is still relevant, please leave a comment or update it to keep it open.

  5. added
    staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.
    on Jun 27, 2026
  6. github-actions commented on Jul 28, 2026

    @github-actions
    Contributor

    This issue has been automatically closed after 30 days of inactivity following its stale status (no activity for a total of 120 days).
    If this is still relevant, feel free to reopen it or leave a comment with additional details so we can continue the discussion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    inspectorIssues and PRs related to the V8 inspector protocol.staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions