Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] - Generate Command Error #55

Closed
John0x opened this issue Jan 27, 2018 · 6 comments
Closed

[BUG] - Generate Command Error #55

John0x opened this issue Jan 27, 2018 · 6 comments
Assignees
Labels

Comments

@John0x
Copy link

John0x commented Jan 27, 2018

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

@thomrick thomrick self-assigned this Jan 28, 2018
@thomrick thomrick added the bug label Jan 28, 2018
@thomrick
Copy link
Contributor

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

@thomrick thomrick changed the title Generate Command Error [BUG] - Generate Command Error Jan 29, 2018
@cliffordduke
Copy link

cliffordduke commented Feb 28, 2018

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

@thomrick
Copy link
Contributor

Hey @ChaoticLoki
I'll reproduce the issue also

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

@zanjs
Copy link

zanjs commented Mar 21, 2018

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

@weeco
Copy link

weeco commented Mar 27, 2018

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

@thomrick
Copy link
Contributor

thomrick commented Apr 1, 2018

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

@thomrick thomrick closed this as completed Apr 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants