Skip to content

How to build the sample app? #1

@3rror404

Description

@3rror404

I've followed the instructions in the readme and the nativescript-camera-*.tgz is created. How do I now run the demo app?

I've tried:

$ /examples/CameraTest
$ npm install
$ tns plugin add /Users/daniel_rochelle/Documents/GitHub/repos/nativescript-camera/dist/package 
$ tns run ios

but this gives me the following error:

Copying template files...
Project successfully created.
Executing before-prepare hook from /Users/daniel_rochelle/Documents/GitHub/repos/nativescript-camera/examples/CameraTest/hooks/before-prepare/nativescript-dev-typescript.js
Found peer TypeScript 2.0.3
node_modules/tns-core-modules/declarations.d.ts(51,25): error TS2304: Cannot find name 'FormData'.

node_modules/tns-core-modules/declarations.d.ts(78,25): error TS2304: Cannot find name 'Blob'.

node_modules/tns-core-modules/declarations.d.ts(78,30): error TS2304: Cannot find name 'FormData'.

node_modules/tns-core-modules/declarations.d.ts(84,17): error TS2304: Cannot find name 'FormData'.

node_modules/tns-core-modules/http/http.d.ts(86,28): error TS2304: Cannot find name 'FormData'.

TypeScript compiler failed with exit code 1

Am I missing some plugins?
Thanks

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