NathanWalker / nativescript-ngx-fonticon

Use custom font icon collections seamlessly with NativeScript + Angular.
MIT License
76 stars 39 forks source link

fonticon.service.ts' is not under 'rootDir' #4

Closed farajfarook closed 7 years ago

farajfarook commented 8 years ago
Executing before-prepare hook from /Users/farajfarook/IdeaProjects/mobapp/hooks/before-prepare/nativescript-dev-typescript.js
Found peer TypeScript 1.8.10
error TS6059: File '/Users/farajfarook/IdeaProjects/mobapp/node_modules/nativescript-ng2-fonticon/src/app/pipes/fonticon.pipe.ts' is not under 'rootDir' '/Users/farajfarook/IdeaProjects/mobapp/app'. 'rootDir' is expected to contain all source files.

error TS6059: File '/Users/farajfarook/IdeaProjects/mobapp/node_modules/nativescript-ng2-fonticon/src/app/services/fonticon.service.ts' is not under 'rootDir' '/Users/farajfarook/IdeaProjects/mobapp/app'. 'rootDir' is expected to contain all source files.

Removing the ts files in NPM solves the compilation issue

NathanWalker commented 7 years ago

Please try 1.3.2 just published now if you are still having trouble. Note new usage guide for TNSFontIconModule in readme, for example in your NgModule:

imports: [
  NativeScriptModule,
  TNSFontIconModule.forRoot({
    'fa': 'font-awesome.css'
  })
]