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

ES Module support is now standard in Node 15.12 #687

Open
BobFrankston opened this issue Apr 17, 2021 · 3 comments
Open

ES Module support is now standard in Node 15.12 #687

BobFrankston opened this issue Apr 17, 2021 · 3 comments

Comments

@BobFrankston
Copy link

ES Modules are now supported in Node 15.12. This means that libraries can be shared natively with browser applications.

Without this support iisnode becomes noncmplaint and unable to use modern libraries.

@BobFrankston
Copy link
Author

BobFrankston commented Apr 17, 2021

I modified the last line of intercept.js to use exec, passing it the quoted process.argv. I not going to submit it because there's too much of a chance of breaking things but as an FYI

var pp = '"' + process.argv.join('" "') + '"';
console.error(`Process ${pp}`);
require('child_process').exec(pp);

//require(process.argv[1]);

It may be more generalized than necessary. The console output is in case it fails.

@jbmgil
Copy link

jbmgil commented Mar 11, 2022

I was having trouble to run my proxy api because of this modules issue. Your approach worked for my case, thanks!

@harit-xtpm
Copy link

I modified the last line of intercept.js to use exec, passing it the quoted process.argv. I not going to submit it because there's too much of a chance of breaking things but as an FYI

var pp = '"' + process.argv.join('" "') + '"';
console.error(`Process ${pp}`);
require('child_process').exec(pp);

//require(process.argv[1]);

It may be more generalized than necessary. The console output is in case it fails.

Finally I can deployed my work, thank you

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