-
Notifications
You must be signed in to change notification settings - Fork 12k
ng generate component fails #297
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
Comments
That is quite problematic! I went to check and on the latest master, I believe the issue is solved. @Brocco reworked the way components are generated to allow for dynamic paths. I expect this to be fixed on the next release. For now, my only solution is to use latest master though. |
My mistake, I just tried it on the windows |
@doczoidberg can you please clarify which version of the CLI you're using/ |
@Brocco 0.0.25 |
Windows does not populate this fix allows for determination of the directory from which an ng command was executed Fixes angular#297
Changing from line 17 of index.js to Is a good workaround for me just now |
@markjritchie that will allow you to get by for now, except it will not allow you to utilize the purpose of this feature, which is to generate items into a dynamic path and also allow routes to be based upon a relative path (current working directory) |
@Brocco very true, but I thought it might be handy to post for anybody that's stuck waiting for the next release |
I've the same problem on a Windows Environment, is this a Windows problem only ? Does it work on a Linux System like Mac ? |
@pierreboissinot It's a windows cmd console specific issue. Which is to say, works on linux and windows with gitbash just fine. We'll fix it. |
Windows does not populate this fix allows for determination of the directory from which an ng command was executed Fixes angular#297
Windows does not populate this fix allows for determination of the directory from which an ng command was executed Fixes angular#297
getting the following error when run $ ng generate component people Error: Cannot find module '@ngtools/json-schema' ng generate component myComponent Any one there to help ? |
which version? does it work on a clean project? |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
I created a new project with the latest angular-cli npm packages 0.0.25 and can't generate a component?
The text was updated successfully, but these errors were encountered: