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

Update interceptor.js #128

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update interceptor.js #128

wants to merge 1 commit into from

Conversation

bbsimonbb
Copy link

Fixes the issue described here with the fix suggested in the answer.

Fixes the issue described [here](https://stackoverflow.com/questions/72407165/nodejs-error-using-import-with-iisnode)
with the fix suggested in the answer.
@ZachHaber
Copy link

It actually seems to work better if you use

import(require('url').pathToFileUrl(process.argv[1]));

From my experimentations with iisnode, if you use the child_process approach, then the logging seems to fail.

This one uses at least node 14 for the dynamic import, but anything less than node 14 likely wouldn't be using ESModules anyway.

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

Successfully merging this pull request may close these issues.

2 participants