kiwiirc / nativescript-tus-client

Apache License 2.0
7 stars 2 forks source link

CLI build on Mac fails after adding this plugin #8

Open sido420 opened 3 years ago

sido420 commented 3 years ago

I have confirmed by adding and removing this plugin. As soon as this plugin is added the build starts and stalls at the following lines:

node binding text = username
node binding text = email
node binding text = msg
node binding text = msg

There are no errors on the console.

Which platform(s) does your issue occur on?

Android device

Please, provide the following version numbers that your issue occurs with:

and also on 6.5.3


- Plugin(s): 
    "@nativescript/core": "^6.5.18",
    "@nativescript/theme": "^2.3.3",
    "@nstudio/nativescript-loading-indicator": "^3.0.4",
    "dotenv": "^8.2.0",
    "localforage": "^1.9.0",
    "localforage-memoryStorageDriver": "^0.9.2",
    "nativescript": "^6.7.8",
    "nativescript-background-http": "4.2.1",
    "nativescript-contacts": "^1.6.2",
    "nativescript-downloader": "^2.1.5",
    "nativescript-exoplayer": "^4.0.2",
    "nativescript-feedback": "^1.5.0",
    "nativescript-geolocation": "5.1.0",
    "nativescript-https": "^2.1.0",
    "nativescript-image": "3.0.1",
    "nativescript-intl": "3.0.0",
    "nativescript-iqkeyboardmanager": "1.5.1",
    "nativescript-mediafilepicker": "^3.0.2",
    "nativescript-oauth2": "^2.4.2",
    "nativescript-perms": "^2.0.11",
    "nativescript-secure-storage": "^2.6.1",
    "nativescript-theme-core": "1.0.6",
    "nativescript-toast": "^2.0.0",
    "nativescript-tus-client": "^1.0.0",
    "nativescript-ui-autocomplete": "^6.0.1",
    "nativescript-ui-sidedrawer": "8.0.0",
    "nativescript-urlhandler": "^1.3.0",
    "nativescript-vibrate": "^3.1.0",
    "nativescript-websockets": "^1.5.6",
    "svelte-native": "0.8.1",
    "svelte-native-nativescript-ui": "^0.9.0",
    "tns-core-modules": "^6.5.18"


### Please, tell us how to recreate the issue in as much detail as possible. 
It happens during build time.

### Is there any code involved? 
Adding this plugin stops build process.
tralves commented 3 years ago

Hi!

I don't really know what to say about this issue. The log you posted looks like svelte stuff, nothing to do with the plugin.

Did you try rm -rf platforms? This plugin needs to install external native libs, so it could be that.

sido420 commented 3 years ago

The issue has been minimized (ie. only gets stuck some times now). However, on Android 11 device the app crashed when I do upload.start(). But, same code seems to work on Android 8 device.

I'm still investigating.

sido420 commented 3 years ago

Ok, app crashes on Android 8 as well now. It seems like after a fresh app install, it works the first time or so but after a code change when NS app is refreshed on the device it starts crashing.

I have upload.start() in a try/catch block but it never reaches the catch block so have no error msg etc.

tralves commented 3 years ago

are you using hmr? try run/debug with --no-hmr.

sido420 commented 3 years ago

I was using hmr but using --no-hmr does not seem to work and build stalls. I also tried removing platforms/ and clean etc.