I installed NW.js with linux command like below:
npm install node-webkit-builder -g
After I install, I tried to make *.exe file with this NW builder.
But, still can’t understand the problem is happening
when I try to below commands:
nwbuild --platform "win32, win64
nwbuild
Below is the error code when I trying to enter that command:
TypeError: Cannot read properties of undefined (reading 'replace')
at Object.parse (file:///usr/lib/node_modules/nw-builder/src/util.js:206:39)
at nwbuild (file:///usr/lib/node_modules/nw-builder/src/index.js:46:26)
at file:///usr/lib/node_modules/nw-builder/src/cli.js:28:1
at ModuleJob.run (node:internal/modules/esm/module_job:262:25)
at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:482:26)
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:117:5)
file:///usr/lib/node_modules/nw-builder/src/util.js:206
options.app.name = options.app.name.replace(/[<>:"/\|?*u0000-u001F]/g, '');
TypeError: Cannot read properties of undefined (reading 'replace')
at Object.parse (file:///usr/lib/node_modules/nw-builder/src/util.js:206:39)
at nwbuild (file:///usr/lib/node_modules/nw-builder/src/index.js:46:26)
at file:///usr/lib/node_modules/nw-builder/src/cli.js:28:1
at ModuleJob.run (node:internal/modules/esm/module_job:262:25)
at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:482:26)
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:117:5)
Node.js v22.8.0
Can someone tell me, please why is this error happening in my coding?
I already asked a lot of time for chatGPT with that error code, and I already asked the Manjaro community.
https://forum.manjaro.org/t/theres-a-problem-in-nw-js/169599
But they didn’t find this problem solution.
The saying Check the script but I’m not sure about that.