shripalsoni04 / nativescript-angular-drawer-template

A starter project to quickly create nativescript angular project with drawer pages.
MIT License
46 stars 9 forks source link

Using webpack with this template, it fails to build #16

Closed gaurav-chandra closed 7 years ago

gaurav-chandra commented 7 years ago

I get the following error:

ERROR in Type RadSideDrawerComponent in /Users/gauravchandra/Documents/GIT_REPOSITORIES/WhereIsIt/App/whereisit/node_modules/nativescript-telerik-ui/sidedrawer/angular/side-drawer-directives.d.ts is part of the declarations of 2 modules: NativeScriptUISideDrawerModule in /Users/gauravchandra/Documents/GIT_REPOSITORIES/WhereIsIt/App/whereisit/node_modules/nativescript-telerik-ui/sidedrawer/angular/side-drawer-directives.d.ts and SharedModule in /Users/gauravchandra/Documents/GIT_REPOSITORIES/WhereIsIt/App/whereisit/app/shared/shared.module.ts! Please consider moving RadSideDrawerComponent in /Users/gauravchandra/Documents/GIT_REPOSITORIES/WhereIsIt/App/whereisit/node_modules/nativescript-telerik-ui/sidedrawer/angular/side-drawer-directives.d.ts to a higher module that imports NativeScriptUISideDrawerModule in /Users/gauravchandra/Documents/GIT_REPOSITORIES/WhereIsIt/App/whereisit/node_modules/nativescript-telerik-ui/sidedrawer/angular/side-drawer-directives.d.ts and SharedModule in /Users/gauravchandra/Documents/GIT_REPOSITORIES/WhereIsIt/App/whereisit/app/shared/shared.module.ts. You can also create a new NgModule that exports and includes RadSideDrawerComponent in /Users/gauravchandra/Documents/GIT_REPOSITORIES/WhereIsIt/App/whereisit/node_modules/nativescript-telerik-ui/sidedrawer/angular/side-drawer-directives.d.ts then import that NgModule in NativeScriptUISideDrawerModule in /Users/gauravchandra/Documents/GIT_REPOSITORIES/WhereIsIt/App/whereisit/node_modules/nativescript-telerik-ui/sidedrawer/angular/side-drawer-directives.d.ts and SharedModule in /Users/gauravchandra/Documents/GIT_REPOSITORIES/WhereIsIt/App/whereisit/app/shared/shared.module.ts.

If I remove all the code for side drawer, it builds fine.