Compile/extract command doesn't work on Windows
See original GitHub issueGetting this error when running command to add a new locale:
$ lingui add-locale cs
fs.js:653
return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
^
Error: ENOENT: no such file or directory, open 'C:\<projectDir>\locale\cs\messages.json'
at Object.fs.openSync (fs.js:653:18)
at Object.fs.writeFileSync (fs.js:1300:33)
at Object.write (C:\<projectDir>\node_modules\lingui-cli\dist\api\formats\lingui.js:60:20)
at Object.addLocale (C:\<projectDir>\node_modules\lingui-cli\dist\api\formats\lingui.js:162:14)
at C:\<projectDir>\node_modules\lingui-cli\dist\lingui-add-locale.js:29:36
at Array.map (<anonymous>)
at command (C:\<projectDir>\node_modules\lingui-cli\dist\lingui-add-locale.js:28:25)
at Object.<anonymous> (C:\<projectDir>\node_modules\lingui-cli\dist\lingui-add-locale.js:68:3)
at Module._compile (module.js:624:30)
at Object.Module._extensions..js (module.js:635:10)
error Command failed with exit code 1.
lingui-cli 1.3.7 windows 10 (tried both from command prompt and git bash)
Issue Analytics
- State:
- Created 6 years ago
- Comments:27 (14 by maintainers)
Top Results From Across the Web
Can't Extract zipped Files with Windows 10 built in
Open file manager, highlight the zip file, right click then click "Open With"->More Apps->scroll down to end of list->click "Look for another ...
Read more >Error extracting tar.xz files in Windows using command line
I am able to use 7-zip to open the files, but for this I have to manually unzip each file from .xz first...
Read more >"Register" an .exe so you can run it from any command line in ...
Type the Directory path of your .exe or batch file ( Directory means exclude the file name from path); Click Ok on all...
Read more >Tips to Fix Windows Cannot Complete the Extraction
Tip 4: Check if You Can Open Another Zip File ... The location of your zip file on Windows Explorer may be corrupted....
Read more >Command-line Guide for Linux, Mac & Windows
File Archiving, File Management, Compression, Decompression, Extraction, Tar, Zip, ... That command doesn't compress a*.txt files. -ssw, Compress files open ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@XSlemX Uff, I really don’t understand how I missed that. Using lingui-cli for 6 months and never saw this error 😕
Dependencies are fixed in lingui-cli@1.3.13, thank you for debugging this!
@tricoder42 nice work, thanks