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

Unable to use dynamic import() in cjs-files #30

Open
KilianKilmister opened this issue Sep 11, 2020 · 2 comments
Open

Unable to use dynamic import() in cjs-files #30

KilianKilmister opened this issue Sep 11, 2020 · 2 comments

Comments

@KilianKilmister
Copy link

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

@alexander-akait
Copy link

/cc @zertosh

@zertosh
Copy link
Owner

zertosh commented Dec 3, 2020

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

coderaiser added a commit to coderaiser/putout that referenced this issue Apr 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants