Skip to content

Error: linking error, not in local cache when using --inspect-brk for es modules #18948

Description

@lukaszewczak
  • Version: 9.6.1
  • Platform: Windows 64-bit
  • Subsystem: inspector

Hi, I try to run debugger for es modules using --inspect-brk flag, but after I attached Chrome Dev Tools I receive this error

internal/loader/ModuleJob.js:31
        initWrapper(this.module.instantiate, this.module);
        ^
Error: linking error, not in local cache
    at link (internal/loader/ModuleJob.js:31:9)
    at <anonymous>

I create two small files to test debuuger:

  • index.mjs
import {add} from './calc';

console.log(add(5, 6));
  • calc.mjs
export function add (a, b) {
    return a + b;
}

I try to run code with this command node --experimental-modules --inspect-brk index.mjs.

I updated my Chrome to version 64.0.3282.186.
I try this with the same result on Chrome Canary 66.0.3352.0.

I do not have any breakpoints set up but after I attached Dev Tools, code is always break on internal/async_hooks.js:157 and after I resume script execution I receive above error.

image

Metadata

Metadata

Assignees

Labels

esmIssues and PRs related to the ECMAScript Modules implementation.experimentalIssues and PRs related to experimental features.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