Ng build error: AppComponent declared in two modules


I’m running Visual Studio 2017 15.7.4

When VS 2017 runs ng build with the “–prod” argument, Angular-CLI is choking on the fact that AppComponent is declared in both app.module.ts and app.module.tns.ts.

I’m not aware of any way to instruct the ng build command to ignore files by extension or regular expression matching against the filename – is there one? If not, that would certainly be useful.

I’m looking for your thoughts on how best to overcome this issue.