nativescript-accordion icon indicating copy to clipboard operation
nativescript-accordion copied to clipboard

App crashing at accordian footer

Open kapiltiwari61 opened this issue 5 years ago • 2 comments

Make sure to check the demo app(s) for sample usage

Make sure to check the existing issues in this repository

If the demo apps cannot help and there is no issue for your problem, tell us about it

Please, ensure your title is less than 63 characters long and starts with a capital letter.

Which platform(s) does your issue occur on?

  • iOS/Android/Both
  • iOS/Android versions
  • emulator or device. What type of device?

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

  • CLI: (run tns --version to fetch it)
  • 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)
  • Plugin(s): (look for the version numbers in the package.json file of your project and paste your dependencies and devDependencies here)

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

Describe the steps to reproduce it.

Is there any code involved?

  • provide a code example to recreate the problem
  • (EVEN BETTER) provide a .zip with application or refer to a repository with application where the problem is reproducible.

kapiltiwari61 avatar May 10 '19 10:05 kapiltiwari61

App is crashing when accordian is populating..Earlier it was working but not now.

<accordion:Accordion.footerTemplate> <GridLayout columns="auto,*"> <Label text="{{footer}}"/> <Label col="1" text="-"/> </GridLayout> </accordion:Accordion.footerTemplate> crashing at <Label text="{{footer}}"/>

Find below below log.

JavaScript stack trace: 1 measure@file:///app/tns_modules/tns-core-modules/ui/core/view/view.js:58:124 2 measureChild@file:///app/tns_modules/tns-core-modules/ui/core/view/view-common.js:888:26 3 measureChild@file:///app/tns_modules/tns-core-modules/ui/layouts/grid-layout/grid-layout.js:585:63 4 measure@file:///app/tns_modules/tns-core-modules/ui/layouts/grid-layout/grid-layout.js:528:34 5 onMeasure@file:///app/tns_modules/tns-core-modules/ui/layouts/grid-layout/grid-layout.js:112:28 6 measure@file:///app/tns_modules/tns-core-modules/ui/core/view/view.js:55:27 7 measureChild@file:///app/tns_modules/tns-core-modules/ui/core/view/view-common.js:888:26 8 tableViewViewForFooterInSection@file:///app/tns_modules/nativescript-accordion/src/ios/accordion.js:445:56 9 UIApplicationMain@[native code] 10 _start@file:///app/tns_modules/tns-core-modules/application/application.js:275:26 11 start@file:///app/tns_modules/tns-core-modules/application/application.js:302:11 12 anonymous@file:///app/app.js:29:18 13 evalua<…> JavaScript error: file:///app/tns_modules/tns-core-modules/ui/core/view/view.js:58:124: JS ERROR Error: onMeasure() did not set the measured dimension by calling setMeasuredDimension() Label(532)@file:///app/pages/bottom-pages/second-tab/second-tab-component.xml:99:17;

Package.json

{ "description": "NativeScript Application", "license": "SEE LICENSE IN <your-license-filename>", "readme": "NativeScript Application", "repository": "<fill-your-repository-here>", "nativescript": { "id": "abc", "tns-android": { "version": "5.2.1" }, "tns-ios": { "version": "5.3.1" } }, "dependencies": { "ajax-request": "^1.2.3", "base-64": "^0.1.0", "lodash": "^4.17.11", "nativescript-accordion": "^5.0.3", "nativescript-appversion": "^1.4.1", "nativescript-bottom-navigation": "^1.5.0", "nativescript-cardview": "^2.0.4", "nativescript-carousel": "^4.1.0", "nativescript-checkbox": "^3.0.3", "nativescript-downloader": "^1.0.3", "nativescript-drawingpad": "^3.0.2", "nativescript-drop-down": "^3.2.5", "nativescript-exit": "^1.0.1", "nativescript-geolocation": "^4.5.0", "nativescript-globalevents": "^1.2.2", "nativescript-grid-view": "^3.2.2", "nativescript-image-cache": "^1.1.5", "nativescript-insomnia": "^1.2.2", "nativescript-iqkeyboardmanager": "^1.4.0", "nativescript-loading-indicator": "^2.4.0", "nativescript-localstorage": "^1.1.5", "nativescript-pdf-view": "^2.0.1", "nativescript-sqlite": "https://github.com/divyanshujain12/sqlite-nativescript.git", "nativescript-theme-core": "~1.0.4", "nativescript-toasty": "^1.3.0", "nativescript-ui-listview": "^6.2.0", "tns-core-modules": "^4.2.1", "utf8": "^3.0.0" }, "devDependencies": { "babel-traverse": "6.4.5", "babel-types": "6.4.5", "babylon": "6.4.5", "copy-webpack-plugin": "~4.3.0", "css-loader": "~0.28.7", "extract-text-webpack-plugin": "~3.0.2", "lazy": "1.0.11", "nativescript-dev-webpack": "^0.9.2", "nativescript-worker-loader": "^0.8.1", "raw-loader": "~0.5.1", "resolve-url-loader": "~2.2.1", "uglifyjs-webpack-plugin": "~1.1.6", "webpack": "~3.10.0", "webpack-bundle-analyzer": "^2.13.1", "webpack-sources": "~1.1.0" } }

kapiltiwari61 avatar May 10 '19 10:05 kapiltiwari61

@triniwiz I am also facing same issue. It was working properly but now its not working. I am stuck to publish my build. Please provide me the solution asap.

prabh08 avatar Dec 05 '19 17:12 prabh08