Skip to content

Runtime error when using require("net"); Mac OS/xcode #39

@n0n0n0

Description

@n0n0n0

When I try use node module "net" in main-page.js like this
var net = require("net");
I get runtime error. As I wrote in issues here I still cant run app with tns run ios --emulator but i can run it in xcode from xcodeproject file in platforms/ios. So I see this error only in debug mode in xcode (while app in emulator show me start screen with "NativeScreen" icon). In xcode debug screen with assembler-like view i see this:
Thread 1: EXC_BAD_ACCESS (code=1, address=0xbbadveef)
When I delete statement 'var net = require("net");` app works fine.
So whats wrong here?

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