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

ng g c doesn't add the component to NgModule if custom extension is used #78

Closed
sis0k0 opened this issue Aug 17, 2018 · 0 comments · Fixed by #79
Closed

ng g c doesn't add the component to NgModule if custom extension is used #78

sis0k0 opened this issue Aug 17, 2018 · 0 comments · Fixed by #79
Assignees
Labels

Comments

@sis0k0
Copy link
Contributor

sis0k0 commented Aug 17, 2018

If you have a shared project with a custom web extension, the generation of new components won't update the modules. Example:

Structure

src/
	app/
		app.module.web.ts
		...

Command

ng generate component random

Expected
The generated component should be declared inside app.module.web.ts.

Actual
The command fails, because it cannot find a module to declare the component inside.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant