-
Notifications
You must be signed in to change notification settings - Fork 12k
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
ng generate adds component to module even if the generated component is identical #4323
Comments
Quick hint: A temporary workaround for now is: If you know you are adding the same component again (I imagine for example you want to add a |
Can you please confirm whether this is still the case with latest version? |
Oops. Sorry I read that as 20 not 28. Bad bad eyes. |
"ng g c X" will no longer insert the component symbol in the NgModule's declaration array should it already exist. fixes angular#4323
"ng g c X" will no longer insert the component symbol in the NgModule's declaration array should it already exist. fixes angular#4323
"ng g c X" will no longer insert the component symbol in the NgModule's declaration array should it already exist. Closes angular#4323
"ng g c X" will no longer insert the component symbol in the NgModule's declaration array should it already exist. Closes angular#4323
"ng g c X" will no longer insert the component symbol in the NgModule's declaration array should it already exist. Closes angular#4323
"ng g c X" will no longer insert the component symbol in the NgModule's declaration array should it already exist. Closes angular#4323
"ng g c X" will no longer insert the component symbol in the NgModule's declaration array should it already exist. Closes angular#4323
"ng g c X" will no longer insert the component symbol in the NgModule's declaration array should it already exist. Closes angular#4323
"ng g c X" will no longer insert the component symbol in the NgModule's declaration array should it already exist. Closes angular#4323
"ng g c X" will no longer insert the component symbol in the NgModule's declaration array should it already exist. Closes angular#4323
"ng g c X" will no longer insert the component symbol in the NgModule's declaration array should it already exist. Closes angular#4323
…ymbol (angular#4446) "ng g c X" will no longer insert the component symbol in the NgModule's declaration array should it already exist. Closes angular#4323
use this |
in vs code you have terminal u can select the folder an right click on that folder an select the option from the drop down open in terminal |
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. |
OS?
macOS Sierra
Versions.
Repro steps.
Create an app with
ng new
Follow these steps:
Because the last
generate
command generates all identical files I don't expect the update of the module to happen, as this will leave it with the same component being declared twice.The log given by the failure.
No failures.
Mention any other details that might be useful.
The text was updated successfully, but these errors were encountered: