nativescript-community / ui-canvas

Implement Canvas into your NativeScript apps.
https://nativescript-community.github.io/ui-canvas/
Apache License 2.0
31 stars 9 forks source link

NativeClass not found error #47

Open nc1401 opened 9 months ago

nc1401 commented 9 months ago

Which platform(s) does your issue occur on?

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

APP crashed on launch with this error : JavaScript exception - application has been terminated. *****

2023-10-20 18:35:45.131767+0530 QA-Investor360[68659:4176799] NativeScript encountered a fatal error: Uncaught ReferenceError: NativeClass is not defined

at

./node_modules/@nativescript-community/ui-canvas/index.ios.js(file:///app/vendor.js:3752:5)

at __webpack_require__(file:///app/runtime.js:23:42)

at ./node_modules/@nativescript-community/ui-chart/charts/BarLineChartBase.js(file:///app/vendor.js:5284:91)

at __webpack_require__(file:///app/runtime.js:23:42)

at ./node_modules/@nativescript-community/ui-chart/charts/BarChart.js(file:///app/vendor.js:5156:75)

at __webpack_require__(file:///app/runtime.js:23:42)

at ../../../libs/nativescript/shared/src/lib/components/charts/charts.module.ts(file:///app/bundle.js:2230:97)

at __webpack_require__(file:///app/runtime.js:23:42)

at ../../../libs/nativescript/shared/src/lib/nativescript-shared.module.ts(file:///app/bundle.js:7551:90)

at __webpack_require__(file:///app/runtime.js:23:42)

at ../../../libs/nativescript/shared/src/index.ts(file:///app/bundle.js:1303:89)

at __webpack_require__(file:///app/runtime.js:23:42)

at ./src/app.component.ts(file:///app/bundle.js:61:83)

at __webpack_require__(file:///app/runtime.js:23:42)

at ./src/app.module.ts(file:///app/bundle.js:255:72)

at __webpack_require__(file:///app/runtime.js:23:42)

at ./src/main.ts(file:///app/bundle.js:15:69)

at __webpack_require__(file:///app/runtime.js:23:42)

at __webpack_exec__(file:///app/bundle.js:11338:39)

at (file:///app/bundle.js:11339:189)

at (file:///app/runtime.js:102:21)

at (file:///app/bundle.js:11339:47)

at (file:///app/bundle.js:11344:3)

at require(:1:232)
nc1401 commented 9 months ago

@farfromrefug This same issue occurred yesterday but was fixed after 4 hours automatically, it looks like it has something to with the update you are making to this package

farfromrefug commented 8 months ago

@nc1401 thanks yes I need to find a way to ensure it never happens. It is an issue with npm which makes it happen randomly

nc1401 commented 8 months ago

@farfromrefug is it an intermittent issue? Is there a tentative plan to when this will be resolved, or do we roll back to ui-charts-1.2.26 while this is being resolved? Cause that's the only package that has a dependency on ui-canvas for us.

farfromrefug commented 8 months ago

@nc1401 it is fixed latest isn't it?

nc1401 commented 8 months ago

@farfromrefug not yet, I still see the same issue

farfromrefug commented 8 months ago

@nc1401 OK strange dont see it here. Will take a look

nc1401 commented 8 months ago

@farfromrefug did you get a chance to look into it?

farfromrefug commented 8 months ago

@nc1401 a new version is out.