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

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

Open
bpstrngr opened this issue Sep 22, 2020 · 1 comment
Open
Labels
inspector Issues and PRs related to the V8 inspector protocol

Comments

@bpstrngr
Copy link

bpstrngr commented Sep 22, 2020

  • 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

@bpstrngr bpstrngr changed the title Invalid host defined options error on dynamic import in DevTools inspector Dynamic import fails in DevTools inspector (invalid host defined options) Sep 23, 2020
@watilde watilde added the inspector Issues and PRs related to the V8 inspector protocol label Sep 26, 2020
@DavidPeicho
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
inspector Issues and PRs related to the V8 inspector protocol
Projects
None yet
Development

No branches or pull requests

3 participants