nativescript-loading-indicator icon indicating copy to clipboard operation
nativescript-loading-indicator copied to clipboard

{N} 7 Error creating Loading Indicator Pop Over: Cannot read property 'drawable' of undefined

Open tidusjar opened this issue 4 years ago • 10 comments

Which platform(s) does your issue occur on?

  • Android

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

  • CLI: 7.0.8
  • Cross-platform modules: (check the 'version' attribute in the node_modules/tns-core-modules/package.json file in your project)
  • Runtime(s): 7.0.0
  • Plugin(s):
"dependencies": {
    "@angular/animations": "~10.1.0",
    "@angular/common": "~10.1.0",
    "@angular/compiler": "~10.1.0",
    "@angular/core": "~10.1.0",
    "@angular/forms": "~10.1.0",
    "@angular/platform-browser": "~10.1.0",
    "@angular/platform-browser-dynamic": "~10.1.0",
    "@angular/router": "~10.1.0",
    "@danvick/ngx-translate-nativescript-loader": "^2.0.2",
    "@nativescript-community/ui-material-button": "^4.0.11",
    "@nativescript-community/ui-material-floatingactionbutton": "^4.0.11",
    "@nativescript-community/ui-material-textfield": "^4.0.11",
    "@nativescript/angular": "~10.1.0",
    "@nativescript/core": "~7.0.0",
    "@nativescript/firebase": "^11.0.0",
    "@nativescript/theme": "~2.5.0",
    "@ngx-translate/core": "^13.0.0",
    "@ngx-translate/http-loader": "^6.0.0",
    "@nstudio/nativescript-loading-indicator": "^4.0.0",
    "@nstudio/nativescript-pulltorefresh": "^3.0.0",
    "nativescript-barcodescanner": "^4.0.0",
    "nativescript-feedback": "^2.0.0",
    "nativescript-purchase": "^2.0.14",
    "nativescript-ui-listview": "^9.0.2",
    "nativescript-ui-sidedrawer": "~9.0.0",
    "reflect-metadata": "~0.1.12",
    "rxjs": "^6.6.0",
    "zone.js": "~0.11.1"
  },
  "devDependencies": {
    "@angular/compiler-cli": "~10.1.0",
    "@nativescript/android": "7.0.0",
    "@nativescript/webpack": "~3.0.0",
    "@ngtools/webpack": "~10.1.0",
    "codelyzer": "~6.0.0",
    "node-sass": "^4.14.1",
    "tslint": "~6.1.3",
    "typescript": "~3.9.0"
  },

Please, tell us how to recreate the issue in as much detail as possible.

Getting the error Error creating Loading Indicator Pop Over: Cannot read property 'drawable' of undefined when attempting to show a loading indicator.

Is there any code involved?

Code example:



 private indicator = new LoadingIndicator();

 private showLoading() {
        const options: OptionsCommon = {
            progress: 0.65,
            margin: 10,
            color: "#4B9ED6", 
            backgroundColor: "black",
            mode: Mode.AnnularDeterminate 
        };

        this.indicator.show(options);
    }

tidusjar avatar Sep 18 '20 22:09 tidusjar

@tidusjar I also encountered this crash, and I agree that it should be fixed. But I noticed that it only seems to happen for me if I call show(options) when there is already a loading indicator showing. So you can probably work around it for now by keeping track of whether you are already showing the indicator before showing it again.

adapptor-jono avatar Oct 20 '20 05:10 adapptor-jono

@adapptor-jono can you provide a sample snippet of what you meant ? Thanks

gitalvininfo avatar Jan 08 '21 05:01 gitalvininfo

I have this problem too :( and happen in any situation.

cristiandaulisio avatar Jan 14 '21 09:01 cristiandaulisio

I'm also facing this issue on {N}7 Here you can find a reproducible example https://github.com/SergeyMell/nativescript-loader-issue-example

SergeyMell avatar Feb 01 '21 21:02 SergeyMell

same here (on NS7)

sido420 avatar Feb 16 '21 04:02 sido420

Same Here

PaoloMarconi95 avatar Apr 07 '21 09:04 PaoloMarconi95

Same Here

OPADA-Eng avatar Apr 19 '21 12:04 OPADA-Eng

Same here (NS8)

Bezlepkin avatar Jun 23 '21 13:06 Bezlepkin

news? someone found a solution?

cristiandaulisio avatar Sep 13 '21 15:09 cristiandaulisio

i set mode: Mode.Indeterminate in options is workable

cchoici avatar Oct 19 '21 04:10 cchoici