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

Error trying to add the module to my project #9

@shiamalon

Description

@shiamalon

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions