I was unable to build printer-cli on Windows 10. Updating NX to the latest version resolved the issue.
The error message is as follows:
> NX ENOENT: no such file or directory, mkdir 'C:\<redacted>\kanji.sh-main\kanji.sh-main\tmpC:\<redacted>\kanji.sh-main\kanji.sh-main\libs\printer-cli'
Error: ENOENT: no such file or directory, mkdir 'C:\<redacted>\kanji.sh-main\kanji.sh-main\tmpC:\<redacted>\kanji.sh-main\kanji.sh-main\libs\printer-cli'
at mkdirSync (node:fs:1372:26)
at writeJsonFile (C:\<redacted>\kanji.sh-main\kanji.sh-main\node_modules\nx\src\utils\fileutils.js:50:24)
at generateTmpSwcrc (C:\<redacted>\kanji.sh-main\kanji.sh-main\node_modules\@nx\js\src\utils\swc\inline.js:9:32)
at swcExecutor (C:\<redacted>\kanji.sh-main\kanji.sh-main\node_modules\@nx\js\src\executors\swc\swc.impl.js:89:73)
at swcExecutor.next (<anonymous>)
at getLastValueFromAsyncIterableIterator (C:\<redacted>\kanji.sh-main\kanji.sh-main\node_modules\nx\src\utils\async-iterator.js:13:27)
at iteratorToProcessStatusCode (C:\<redacted>\kanji.sh-main\kanji.sh-main\node_modules\nx\src\command-line\run\run.js:41:94)
at C:\<redacted>\kanji.sh-main\kanji.sh-main\node_modules\nx\src\command-line\run\run.js:154:16
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async handleErrors (C:\<redacted>\kanji.sh-main\kanji.sh-main\node_modules\nx\src\utils\params.js:9:16)
I did a bit of digging, and I think it was fixed in NX #21801. Regardless, updating NX to the latest release resolved the issue for me.
To Reproduce
Run npm run prebuild-worksheets on a Windows machine.
Desktop (please complete the following information):
I was unable to build printer-cli on Windows 10. Updating NX to the latest version resolved the issue.
The error message is as follows:
I did a bit of digging, and I think it was fixed in NX #21801. Regardless, updating NX to the latest release resolved the issue for me.
To Reproduce
Run
npm run prebuild-worksheets
on a Windows machine.Desktop (please complete the following information):