When using the module on my app I get this error:
Found peer TypeScript 2.1.6
ng-formly-nativescript/core/services/formly.form.builder.spec.ts(32,45): error TS2345: Argument of type '{ label: string; placeholder: string; focus: boolean
; }' is not assignable to parameter of type 'Expected'.
Type '{ label: string; placeholder: string; focus: boolean; }' is not assignable to type 'ObjectContaining'.
Property 'jasmineMatches' is missing in type '{ label: string; placeholder: string; focus: boolean; }'.
The steps I did to add the module to my project and to get this error:
- Copy folders core, ui-bootstrap and index.ts to a folder in the app
- added the following lines to app.module.ts
import { FormlyModule, FormlyBootstrapModule } from '../ng-formly-nativescript/index.d';
....
imports: [
...
NativeScriptFormsModule,
FormlyModule.forRoot(),
FormlyBootstrapModule
],
- run tns debug android
Can someone help me with this?