๐Ÿ“ฆ robhogan / v8-compile-cache-issue

โ˜… 0 stars โ‘‚ 0 forks ๐Ÿ‘ 0 watching
๐Ÿ“ฅ Clone https://github.com/robhogan/v8-compile-cache-issue.git
HTTPS git clone https://github.com/robhogan/v8-compile-cache-issue.git
SSH git clone git@github.com:robhogan/v8-compile-cache-issue.git
CLI gh repo clone robhogan/v8-compile-cache-issue
Rob Hogan Rob Hogan Repro import() issue with v8-compile-cache c5be769 2 years ago ๐Ÿ“ History
๐Ÿ“‚ main View all commits โ†’
๐Ÿ“ node_modules
๐Ÿ“„ esm.js
๐Ÿ“„ index.js
๐Ÿ“„ package.json
๐Ÿ“„ README.md
๐Ÿ“„ yarn.lock
๐Ÿ“„ README.md

node index.js
Hello!

node --require=v8-compile-cache index.js

node:internal/errors:490
    ErrorCaptureStackTrace(err);
    ^

TypeError [ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING]: A dynamic import callback was not specified.
    at new NodeError (node:internal/errors:399:5)
    at importModuleDynamicallyCallback (node:internal/process/esm_loader:39:9)
    at Object.<anonymous> (/data/sandcastle/boxes/fbsource/xplat/js/tools/v8-compile-cache-repro/importWithEsm.js:11:1)
    at Module._compile (/data/sandcastle/boxes/fbsource/xplat/js/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
    at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
    at Module.load (node:internal/modules/cjs/loader:1117:32)
    at Module._load (node:internal/modules/cjs/loader:958:12)
    at Module.require (node:internal/modules/cjs/loader:1141:19)
    at require (node:internal/modules/cjs/helpers:110:18)
    at Object.<anonymous> (/data/sandcastle/boxes/fbsource/xplat/js/tools/v8-compile-cache-repro/index.js:11:1)
    at Module._compile (node:internal/modules/cjs/loader:1254:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
    at Module.load (node:internal/modules/cjs/loader:1117:32)
    at Module._load (node:internal/modules/cjs/loader:958:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:23:47 {
  code: 'ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING'
}