_From @briosheje on July 3, 2017 10:25_
Yes. Several issues are not relatable to the current problem.
Issues when compiling using local external module.
Android, didn't try in iOS yet.
tns --version to fetch it) 3.0.3node_modules/tns-core-modules/package.json file in your project) 3.0.1"tns-android" and "tns-ios" properties in thepackage.json file of your project) 3.0.1 (android)package.json file of yourCreate an external local module, in my case it's just a module that does an HTTP Request (a "Login" module).
Add it to the package.json using "file:", like this:
"@hextra/core": "file:../condiviso/moduli/core"
run
npm install
run
tns debug android
Result:
Total time: 6.159 secs
Project successfully built.
Installing...
Successfully installed on device with identifier '005511e15e3b2504'.
Executing before-livesync hook from C:\Users\hextra\Documents\Svn\Angle\angular2\ng2angle\HextraMobileBase\hooks\before-livesync\nativescript-angular-sync.js
Transferring project files...
Multiple errors were thrown:
EMFILE: too many open files, open 'C:\Users\hextra\Documents\Svn\Angle\angular2\ng2angle\HextraMobileBase\platforms\android\src\main\assets\app\tns_modules\rxjs\operator\take.js.map'
Failed to display command help { Error: EMFILE: too many open files, open 'C:\Users\hextra\AppData\Roaming\npm\node_modules\nativescript\lib\common\commands\help.js'
at Object.fs.openSync (fs.js:584:18)
at Object.fs.readFileSync (fs.js:491:33)
at Object.Module._extensions..js (module.js:579:20)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Yok.resolveDependency (C:\Users\hextra\AppData\Roaming\npm\node_modules\nativescript\lib\common\yok.js:335:13)
at Yok.resolveByName (C:\Users\hextra\AppData\Roaming\npm\node_modules\nativescript\lib\common\yok.js:312:31)
errno: -4066,
code: 'EMFILE',
syscall: 'open',
path: 'C:\\Users\\hextra\\AppData\\Roaming\\npm\\node_modules\\nativescript\\lib\\common\\commands\\help.js' }
Further notes:
If I run the application through the VSCode NativeScript extension, I don't get the error detail and the application runs properly, but the debugger is crashing:
JS: AssetExtraction: Can't remove previously installed assets in /data/user/0/org.nativescript.HextraMobileBase/files/app
JS: AssetExtraction: Can't remove previously installed assets in /data/user/0/org.nativescript.HextraMobileBase/files/internal
# NativeScript Debugger did not start in time #
[31;1mMultiple errors were thrown:
Multiple errors were thrown:
The application org.nativescript.HextraMobileBase does not appear to be running on 005511e15e3b2504 or is not built with debugging enabled.
JS: AssetExtraction: Can't remove previously installed assets in /data/user/0/org.nativescript.HextraMobileBase/files/snapshots/armeabi-v7a
See above.
_Copied from original issue: NativeScript/NativeScript#4493_
Hey @briosheje ,
May I ask you to try to reproduce the same issue with latest CLI. We had some similar issues that we've resolved in our 3.1.x release.
I'm looking forward to hearing from you.
Closing due to inactivity.
@rosen-vladimirov @dtopuzov Sorry, I had no time to test this until yesterday night.
I've re-delployed the app today and everything seems to be working fine now, the error somehow disappeared, thanks.
Most helpful comment
@rosen-vladimirov @dtopuzov Sorry, I had no time to test this until yesterday night.
I've re-delployed the app today and everything seems to be working fine now, the error somehow disappeared, thanks.