Skip to content
This repository has been archived by the owner on Apr 30, 2018. It is now read-only.

Error trying to add the module to my project #9

Open
shiamalon opened this issue Apr 7, 2017 · 1 comment
Open

Error trying to add the module to my project #9

shiamalon opened this issue Apr 7, 2017 · 1 comment

Comments

@shiamalon
Copy link

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:

  1. Copy folders core, ui-bootstrap and index.ts to a folder in the app
  2. added the following lines to app.module.ts
    import { FormlyModule, FormlyBootstrapModule } from '../ng-formly-nativescript/index.d';
    ....
    imports: [
    ...
    NativeScriptFormsModule,
    FormlyModule.forRoot(),
    FormlyBootstrapModule
    ],
  3. run tns debug android

Can someone help me with this?

@mohammedzamakhan
Copy link
Collaborator

@NathanWalker should be able to help you

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants