Skip to content

Running ng-sample - fails with "Cannot read property 'version' of undefined" ? #32

@NathanWalker

Description

@NathanWalker

I'd like to contribute more on this project but want to make sure I can run everything properly.
After following README verbatim, preparing everything, and then try to run the sample with:

env WEBPACK_BUILD=1 tns emulate ios --timeout 500 --device "com.apple.CoreSimulator.SimDeviceType.iPhone 6"

I get this:

Executing before-prepare hook from /Users/nathan/Documents/github_projects/nativescript-stuff/nativescript-angular/ng-sample/hooks/before-prepare/10-copy-renderer.js
Executing before-prepare hook from /Users/nathan/Documents/github_projects/nativescript-stuff/nativescript-angular/ng-sample/hooks/before-prepare/20-nativescript-dev-typescript.js
Found peer TypeScript 1.7.5
Cannot read property 'version' of undefined
# emulate ios
┌─────────┬───────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Usage   │ Synopsis                                                                                                      │
│ General │ $ tns emulate ios [--path <Directory>] [--device <Device Name>] [--available-devices] [--release] [--timeout] │
└─────────┴───────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

Builds the specified project and runs it in the native iOS Simulator.

### Options

    * --available-devices - Lists all available device type identifiers for the current Xcode.
    * --release - If set, produces a release build. Otherwise, produces a debug build.
    * --path - Specifies the directory that contains the project. If not specified, the project is searched for in the current directory and all directories above it.
    * --device - Specifies the name of the iOS Simulator device on which you want to run your app. To list the available iOS Simulator devices, run $ tns emulate ios --available-devices
    * --timeout - Sets the number of seconds that the NativeScript CLI will wait for the iOS Simulator to start before quitting the operation and releasing the console. The value must be a positive integer. If not set, the default timeout is 90 seconds. 

### Attributes

    * <Device Name> is the name of the iOS Simulator device on which you want to run your app as listed by $ tns emulate ios --available-devices 

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