ProgressNS / nativescript-ui-feedback

This repository is used for customer feedback regarding Telerik UI for NativeScript. The issues system here is used by customers who want to submit their feature requests or vote for existing ones.
Other
115 stars 21 forks source link

Error for nativescript-ui-chart ReferenceError TKChartDelegate #1411

Open alexbrbr opened 4 years ago

alexbrbr commented 4 years ago

Hello,

Issue description

When trying to launch a NativeScript app using nativescript-ui-chart on iOS i get this error :

ReferenceError: Can't find variable: TKChartDelegatefile: 

node_modules/nativescript-ui-chart/ui-chart.ios.js:176:0:
JS ERROR ReferenceError: Can't find variable: TKChartDelegate

Plaftorm

Only on iOS. On Android there is no error and the chart is displayed.

Versions

I reproduced the issue by using runtime tns-ios versions 6.4.0 or 6.5.0, but when downgrading to 6.3.0 the application is launched and the charts are displayed. If someone experiences the same issue it can be fixed with :

    "tns-ios": {
      "version": "6.3.0"
    }

How to reproduce

I could not reproduce using https://github.com/NativeScript/nativescript-ui-samples-angular/tree/master/chart/app, where 6.4.0 or 6.5.0 work well on iOS.

Thank you for your help, I would really like to be able to use version 6.4 or 6.5 😄

Here is the full error message :

***** Fatal JavaScript exception - application has been terminated. *****
Native stack trace:
1   0x105c1983e NativeScript::reportFatalErrorBeforeShutdown(JSC::ExecState*, JSC::Exception*, bool)
2   0x105c6b6c4 -[TNSRuntime executeModule:referredBy:]
3   0x10355aad3 main
4   0x10ec01541 start
5   0x1
JavaScript stack trace:
file: node_modules/nativescript-ui-chart/ui-chart.ios.js:176:0
at ../node_modules/nativescript-ui-chart/ui-chart.js(file: node_modules/nativescript-ui-chart/ui-chart.ios.js:178:1)
at __webpack_require__(file: src/webpack/bootstrap:750:0)
at fn(file: src/webpack/bootstrap:120:0)
at ../node_modules/nativescript-ui-chart/angular/chart-directives.js(file: node_modules/nativescript-ui-chart/angular/chart-directives.js:4:26)
at __webpack_require__(file: src/webpack/bootstrap:750:0)
at fn(file: src/webpack/bootstrap:120:0)
at ./app/components/components.module.ts(file:///app/bundle.js:6108:107)
at __webpack_require__(file: src/webpack/bootstrap:750:0)
at fn(file: src/webpack/bootstrap:120:0)
at ./app/pages/common/common.module.ts(file:///app/bundle.js:23564:106)
at __webpack_require__(file: src/webpack/bootstrap:750:0)
at fn(file: src/webpack/bootstrap:120:0)
at ./app/app.module.ts(file:///app/bundle.js:1079:104)
at __webpack_require__(file: src/webpack/bootstrap:750:0)
at fn(file: src/webpack/bootstrap:120:0)
at file:///app/bundle.js:48917:92
at ./main.ns.ts(file:///app/bundle.js:48999:34)
at __webpack_require__(file: src/webpack/bootstrap:750:0)
at ch<…>
JavaScript error:
file: node_modules/nativescript-ui-chart/ui-chart.ios.js:176:0: JS ERROR ReferenceError: Can't find variable: TKChartDelegate
(CoreFoundation) *** Terminating app due to uncaught exception 'NativeScript encountered a fatal error: ReferenceError: Can't find variable: TKChartDelegate
at
file: node_modules/nativescript-ui-chart/ui-chart.ios.js:176:0
at ../node_modules/nativescript-ui-chart/ui-chart.js(file: node_modules/nativescript-ui-chart/ui-chart.ios.js:178:1)
at __webpack_require__(file: src/webpack/bootstrap:750:0)
at fn(file: src/webpack/bootstrap:120:0)
at ../node_modules/nativescript-ui-chart/angular/chart-directives.js(file: node_modules/nativescript-ui-chart/angular/chart-directives.js:4:26)
at __webpack_require__(file: src/webpack/bootstrap:750:0)
at fn(file: src/webpack/bootstrap:120:0)
at ./app/components/components.module.ts(file:///app/bundle.js:6108:107)
at __webpack_require__(file: src/webpack/bootstrap:750:0)
at fn(file: src/webpack/bootstrap:120:0)
at ./app/pages/common/common.module.ts(file:///app/bundle.js:23564:106)
at __webpack_require__(file: src/webpack/bootstrap:750:0)
at fn(file: src/webpack/bootstrap:120:0)
at ./app/app.module.ts(file:///app/bundle.js:1079:104)
at __webpack_require__(file: src/webpack/bootstrap:750:0)
at fn(file:///app/runtime.js:121:<…>
NativeScript caught signal 6.
Native Stack:
1   0x105c6a321 sig_handler(int)
2   0x10ef5db5d _sigtramp
3   0x0
4   0x10ece001d abort
5   0x10ea7e9d1 __cxa_bad_cast
6   0x10ea7eb6f default_unexpected_handler()
7   0x10dbfae2d _objc_terminate()
8   0x10ea8aa2e std::__terminate(void (*)())
9   0x10ea8a4eb __cxa_get_exception_ptr
10  0x10ea8a4b2 __cxxabiv1::exception_cleanup_func(_Unwind_Reason_Code, _Unwind_Exception*)
11  0x10dbfabfa _objc_exception_destructor(void*)
12  0x105c19d7f NativeScript::reportFatalErrorBeforeShutdown(JSC::ExecState*, JSC::Exception*, bool)
13  0x105c6b6c4 -[TNSRuntime executeModule:referredBy:]
14  0x10355aad3 main
15  0x10ec01541 start
16  0x1