nest-cli icon indicating copy to clipboard operation
nest-cli copied to clipboard

[BUG] - Generate Command Error

Open John0x opened this issue 8 years ago • 6 comments

Hey, I'm inside a freshly generated nest project (generated by the cli) and tried to run nest g module test, which gives me this error:

ENOENT: no such file or directory, mkdir 'D:\D:\D:'

Windows 10 (newest updates) 64bit

John0x avatar Jan 27 '18 17:01 John0x

Hum super weird about the mkdir error ! I'll check it out soon

thomrick avatar Jan 28 '18 10:01 thomrick

Seems to be an issue with the reducer in the function createRecursiveDirectory(folder) in the ./src/commands/generate/asset.emitter.ts file.

Looks like the first duplicate is caused by the first value of the array C: which is being passed as the initial value of the reducer but it is not removed from the array causing it to use C: twice.

the initial value is also appending the root / which basically causes the first iteration of the reducer to generate /c:/c: which I believe converts it to C:\C:\C:\

cliffordduke avatar Feb 28 '18 09:02 cliffordduke

Hey @ChaoticLoki I'll reproduce the issue also

It will be fixed soon with the @angular-devkit/schematics template engine !!!

thomrick avatar Feb 28 '18 10:02 thomrick

I'll reproduce the issue also @ChaoticLoki 😭😭😭😭

zanjs avatar Mar 21 '18 06:03 zanjs

Same issue here, I am available in case you need more information to debug.

weeco avatar Mar 27 '18 03:03 weeco

The CLI tool was rebuild from scratch and integrate schematics to generate assets. Please upgrade to v4.0.0-rc1

thomrick avatar Apr 01 '18 10:04 thomrick