question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Compile/extract command doesn't work on Windows

See original GitHub issue

Getting 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:closed
  • Created 6 years ago
  • Comments:27 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
tricoder42commented, Nov 20, 2017

@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!

0reactions
shye0000commented, Nov 21, 2017

@tricoder42 nice work, thanks

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found