Javet
Javet copied to clipboard
Asynchronous dynamic import
I'm getting an error when I'm using an asynchronous dynamic import
import('fs').then(obj => { console.log(obj) })
Error
[ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING]: A dynamic import callback was not specified. at importModuleDynamicallyCallback (node:internal/modules/esm/utils:231:9) at c.js:13:1 { code: 'ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING' }