v8-compile-cache icon indicating copy to clipboard operation
v8-compile-cache copied to clipboard

Unable to use dynamic import() in cjs-files

Open KilianKilmister opened this issue 5 years ago • 2 comments

Trying to use a dynamic import() statement will fail with:

TypeError [ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING]: A dynamic import callback was not specified.

The error originates from an insufficient options object passed to the new Script()-constructor node VM docs

KilianKilmister avatar Sep 11 '20 16:09 KilianKilmister

/cc @zertosh

alexander-akait avatar Dec 03 '20 15:12 alexander-akait

Sorry I don't have time to implement this. I will however review a carefully though out and thorough PR that implements this.

zertosh avatar Dec 03 '20 18:12 zertosh