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

RangeError: Invalid string length (ERROR ON COMPILE) #32

Open
zerozelta opened this issue Oct 26, 2018 · 3 comments
Open

RangeError: Invalid string length (ERROR ON COMPILE) #32

zerozelta opened this issue Oct 26, 2018 · 3 comments

Comments

@zerozelta
Copy link

Hi i have a strange problem running the script, i can't solve the problem, i have this code

async function compile(execName){
    
// Step 1: Instantiate the MSICreator
const msiCreator = new MSICreator({
    appDirectory: appDirectoryRoot+ "/app-win32-x64",
    outputDirectory: outputDirectory + "/app-win32-x64",
    description: 'description example',
    exe: execName,
    name: execName,
    shortcutFolderName:"app-name",
    manufacturer: 'app-author',
    version: "1.0.0",
    ui:{
        chooseDirectory: true,
    }
});
 
// Step 2: Create a .wxs template file
    await msiCreator.create();
 
// Step 3: Compile the template to a .msi file
    await msiCreator.compile();
}

compile("cinder-win32-x64");

this is the console output

electron-wix-msi: Using light.exe (3.11.1.2318) and candle.exe (3.11.1.2318)
C:\Users\zerozelta\Documents\ElectronProjects\Cinder\node_modules\electron-wix-msi\lib\utils\spawn.js:13
stdout += data;

RangeError: Invalid string length
at Socket.fork.stdout.on (C:\Users\zerozelta\Documents\ElectronProjects\Cinder\node_modules\electron-wix-msi\lib\utils\spawn.js:13:23)
at Socket.emit (events.js:182:13)
at addChunk (_stream_readable.js:283:12)
at readableAddChunk (_stream_readable.js:264:11)
at Socket.Readable.push (_stream_readable.js:219:10)
at Pipe.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)

  • the input and output paths seems to be correct
  • the files .wxs .wixobj and .wixpdb are generated (im not sure if .wixobj and .wixpdb are fully writed)

I know that is a problem with Node and V8 (something exeed the maximum string size), but I followed the steps of use and practically do not modify the example code. i dont know what is the mistake or how can I solve this

@GeraldIr
Copy link

GeraldIr commented Apr 2, 2019

old thread, but I just ran into the same problem.

Has there been any news on this or have you been able to fix it on your own?

@YeetOrBeYate
Copy link

@zerozelta

@GeraldIr

Just ran into this today, is there any update?

@zerozelta
Copy link
Author

sorry but i didn't come up with any solution with this

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