Skip to content

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

@jsinterface

Description

@jsinterface
  • 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 facebook/create-react-app#2271

Metadata

Metadata

Assignees

No one assigned

    Labels

    inspectorIssues and PRs related to the V8 inspector protocol

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions