Nest-cli: [BUG] - Generate Command Error

Created on 27 Jan 2018  路  6Comments  路  Source: nestjs/nest-cli

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

bug

Most helpful comment

Hey @ChaoticLoki
I'll reproduce the issue also

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

All 6 comments

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

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:\

Hey @ChaoticLoki
I'll reproduce the issue also

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

I'll reproduce the issue also @ChaoticLoki 馃槶馃槶馃槶馃槶

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

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rjoydip picture rjoydip  路  5Comments

bovandersteene picture bovandersteene  路  5Comments

jylin picture jylin  路  5Comments

alexbuczynsky picture alexbuczynsky  路  5Comments

xmlking picture xmlking  路  6Comments