-
Notifications
You must be signed in to change notification settings - Fork 106
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
Type <typename> in <path> is part of the declaration of 2 modules... #30
Comments
Would you share a small sample app to help me reproduce the issue? |
I will try... will post it here once ready. Thank you. |
Same here... getting this error in latest version 0.17 for mac.
is it possible to activate dev tools? to be able to give more info? |
ngrev doesn't support the |
I took the following out of tsconfig.app.json. (CLI 1.6.3) ,"exclude": [ I now get this error: Cannot parse your project. Make sure it's compatible with the Angular's AoT compiler. Error during parsing: Type AttachmentCanvasComponent in C:/Projects/MpWebAngCli/src/MpWebAngCli/ClientApp/src/app/canvases/attachment/attachment-canvas.component.ts is part of the declarations of 2 modules: CanvasRoutingModule in C:/Projects/MpWebAngCli/src/MpWebAngCli/ClientApp/src/app/canvases/canvas-routing.module.ts and CanvasRoutingModule in C:\Projects\MpWebAngCli\src\MpWebAngCli\ClientApp\src\app\canvases\canvas-routing.module.ts! Please consider moving AttachmentCanvasComponent in C:/Projects/MpWebAngCli/src/MpWebAngCli/ClientApp/src/app/canvases/attachment/attachment-canvas.component.ts to a higher module that imports CanvasRoutingModule in C:/Projects/MpWebAngCli/src/MpWebAngCli/ClientApp/src/app/canvases/canvas-routing.module.ts and CanvasRoutingModule in C:\Projects\MpWebAngCli\src\MpWebAngCli\ClientApp\src\app\canvases\canvas-routing.module.ts. You can also create a new NgModule that exports and includes AttachmentCanvasComponent in C:/Projects/MpWebAngCli/src/MpWebAngCli/ClientApp/src/app/canvases/attachment/attachment-canvas.component.ts then import that NgModule in CanvasRoutingModule in C:/Projects/MpWebAngCli/src/MpWebAngCli/ClientApp/src/app/canvases/canvas-routing.module.ts and CanvasRoutingModule in C:\Projects\MpWebAngCli\src\MpWebAngCli\ClientApp\src\app\canvases\canvas-routing.module.ts. |
Would you share a minimum demo I can reproduce the issue with? |
I'm having the same issue (on Windows 10). I try to produce a minimal project where this happens because I can not share the one I've tried to use ngrev with. |
@riscie make sure your project's tsconfig doesn't have |
@mgechev that does not cut it for me, I get the same error with or without |
Actually, reproducing this is quite simple (Windows 10). ng --version Angular CLI: 1.6.7 @angular/cli: 1.6.7
|
@augustincalin perfect! Will try to reproduce your steps on Windows in the next few weeks. Not sure if I'll be able to do that by the end of March but will do my best. |
@augustincalin would you try again? Version 0.0.18 updates the compiler. |
Hi @mgechev, I had the same issue as @augustincalin before 0.0.18. Now, I get this message: I can't share the source, sorry - but I wanted to share the error just in case it was useful to you. |
This is unrelated to the reported original issue. |
Hi, I got this error after loading
tsconfig.app.json
.I don't really think, the module is declared in two modules, it is only declared in CoreModule:
Isn't it the problem with paths (
/
vs\
, I'm on Win10)?The text was updated successfully, but these errors were encountered: