-
Notifications
You must be signed in to change notification settings - Fork 271
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
spawn method lack of arguments if no spawnProcess
module set
#1032
Comments
That's the default Node.js handler. Yes, it would be nice to pass |
@adamziel Yep! I am on it. |
@adamziel The pull request is ready to be merged ! 🎉 BTW, I was trying to make the
But this code did not want work. I couldn't access |
Based on the issue #1032 `packages/php-wasm/compile/php/phpwasm-emscripten-library.js` on line `198`: ```javascript if (ENVIRONMENT_IS_NODE) { return require('child_process').spawn(command, [], { shell: true, stdio: ['pipe', 'pipe', 'pipe'], timeout: 100, }); } ``` The `spawn` method should take `args` into account instead of an empty array. ```javascript ... return require('child_process').spawn(command, args, { ... ```
What was the error? |
I got this :
|
That's unexpected, the export is present:
Perhaps that's an issue with paths 🤔 I wonder if it resolves the correct module. What would it say if you |
I have this :
But it seems like If I change this in
It works as I expected it, but this is probably not what you expect on your side. |
Solves #1032 where the package cannot be `require`-d in node.js
@adamziel It is working now with version |
@adamziel I apologize. It seems that I forgot to inject the
args
parameter into thespawn()
method when nosetSpawnHandler
method has been set.packages/php-wasm/compile/php/phpwasm-emscripten-library.js
on line198
:should be :
Do you confirm the new Pull Request ?
The text was updated successfully, but these errors were encountered: