EddyVerbruggen / EddyVerbruggen/nativescript-nodeify

Error: Could not find module 'net'

Open
#21 1 comment 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
93
Forks
27
PR merge metrics
No merged PRs in 30d

Description

I'm trying to require the 'net' node module for make works a NoobHub client (sockets) in my Nativescript app, without success. I have installed with `tns plugin add nativescript-nodeify` and I included `require("nativescript-nodeify");` before `var net = require('net')`, and the app still crashes.

```
1 0x87fcba NativeScript::FFICallback::ffiClosureCallback(ffi_cif*, void*, void**, void*)
2 0xfa9e58 ffi_closure_inner
3 0xfaa222 ffi_closure_i386
4 0x1ffa336 _UIGestureRecognizerSendTargetActions
5 0x1ff7966 _UIGestureRecognizerSendActions
6 0x1ff68fa -[UIGestureRecognizer _updateGestureWithEvent:buttonEvent:]
7 0x1fe1f99 _UIGestureEnvironmentUpdate
8 0x1fe1a58 -[UIGestureEnvironment _deliverEvent:toGestureRecognizers:usingBlock:]
9 0x1fe0bee -[UIGestureEnvironment _updateGesturesForEvent:window:]
10 0x1acedc6 -[UIWindow sendEvent:]
11 0x1a751b0 -[UIApplication sendEvent:]
12 0x22f1c2f __dispatchPreprocessedEventFromEventQueue
13 0x22e90ff __handleEventQueue
14 0x22ea663 __handleHIDEventFetcherDrain
15 0x461ba5f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
16 0x46011c4 __CFRunLoopDoSources0
17 0x460069c __CFRunLoopRun
18 0x45fffd4 CFRunLoopRunSpecific
19 0x45ffe4b CFRunLoopRunInMode
20 0x6acca7a GSEventRunModal
21 0x6acc95f GSEventRun
22 0x1a54bc9 UIApplicationMain
23 0xfaa0e8 ffi_call_i386
file:///app/shared/noobhub.js:7:18: JS ERROR Error: Could not find module 'net'. Computed path '/Users/MacArthurVal/Library/Developer/CoreSimulator/Devices/4FEF57DC-C399-47FE-ADBC-C18D486AC39B/data/Containers/Bundle/Application/EE57D3FE-F650-4B1C-9F8D-030904979BD8/Gluglis.app/app/tns_modules/net'.
Aug 5 01:11:18 Arturos-MacBook-Air com.apple.CoreSimulator.SimDevice.4FEF57DC-C399-47FE-ADBC-C18D486AC39B.launchd_sim[59365] (UIKitApplication:travel.gluglis[0xe5d][59391][62836]): Service exited due to Segmentation fault: 11
```

I'd really appreciate any help, thanks.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.