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

bug #1065

Open
introspection3 opened this issue Nov 21, 2023 · 0 comments
Open

bug #1065

introspection3 opened this issue Nov 21, 2023 · 0 comments
Labels

Comments

@introspection3
Copy link

What happened:
TypeError: Cannot read property 'set' of undefined
at wrapSafe (internal/modules/cjs/loader.js:1125:15)
at Module._compile (internal/modules/cjs/loader.js:1149:27)
at internal/bootstrap/pre_execution.js:118:36
at prepareMainThreadExecution (internal/bootstrap/pre_execution.js:119:3)
at internal/main/repl.js:18:1

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

Environment: windows

  • Platform(OS/Version):
  • Host Node Version: 14
  • Target Node Version: 14
  • Nexe version: latest
  • Python Version: 3.10
    ---------------------------code

console.log(process.argv);
const exec = require('child_process').exec;
const { spawn,execFile } = require('child_process');
setInterval(() => {
console.log('i am er.exe');
}, 10000);
function startAsync(cmd){

execFile(cmd, function(error, stdout, stderr) {
    if(error){
        console.error(error);
    }
    else{
        console.log("success");
    }
});

}

setTimeout(() => {
console.log('er.exe','start s.exe');
let argv0=process.argv[0];
let rootPath=require('path').dirname(argv0);

let exePath=require('path').join(rootPath,'er.exe');
console.log('er.exe','exePath='+exePath);
startAsync(exePath,rootPath);

}, 5000);

code.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant