Attempting to build on Windows

I followed the same path as @Daeraxa and got stuck.

Error: spawnSync yarn ENOENT

The cause is cmd.exe cannot execute yarn. Changing the shell or using yarn.cmd is needed.
By rewriting app-desktop/tools/compileScripts.js as follows, I succeeded in the build.

- const result = spawnSync('yarn', ['run', 'babel', '--presets', 'react', '--out-file', jsPath, jsxPath]);
+ const result = spawnSync('yarn', ['run', 'babel', '--presets', 'react', '--out-file', jsPath, jsxPath], { shell: true });
1 Like