Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI build on Mac fails after adding this plugin #8

Open
sido420 opened this issue Jan 8, 2021 · 5 comments
Open

CLI build on Mac fails after adding this plugin #8

sido420 opened this issue Jan 8, 2021 · 5 comments

Comments

@sido420
Copy link

sido420 commented Jan 8, 2021

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:

  • CLI: (run tns --version to fetch it)
    6.7.8

  • Cross-platform modules: (check the 'version' attribute in the
    node_modules/tns-core-modules/package.json file in your project)

  • Runtime(s): (look for the "tns-android" and "tns-ios" properties in the package.json file of your project)

        "tns-android": {
            "version": "6.5.0"
        }

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
Copy link
Contributor

tralves commented Jan 8, 2021

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.

@tralves tralves closed this as completed Jan 8, 2021
@tralves tralves reopened this Jan 8, 2021
@sido420
Copy link
Author

sido420 commented Jan 8, 2021

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
Copy link
Author

sido420 commented Jan 8, 2021

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
Copy link
Contributor

tralves commented Jan 8, 2021

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

@sido420
Copy link
Author

sido420 commented Jan 8, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants