ui-canvas icon indicating copy to clipboard operation
ui-canvas copied to clipboard

NativeClass not found error

Open nc1401 opened this issue 2 years ago • 8 comments

Which platform(s) does your issue occur on?

  • iOS
  • iOS all versions
  • all devices

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

  • CLI: 8.4.0
  • Cross-platform modules: @nativescript-community/[email protected] @nativescript/[email protected] @nativescript/[email protected] @nativescript/[email protected]
  • Runtime(s): 8.5.2
  • Plugin(s): "dependencies": { "@nativescript-community/ui-chart": "^1.2.26", "@nativescript/core": "8.5.9" }, "devDependencies": { "@nativescript/android": "8.5.0", "@nativescript/ios": "~8.5.2" }

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 avatar Oct 20 '23 13:10 nc1401

@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

nc1401 avatar Oct 20 '23 13:10 nc1401

@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

farfromrefug avatar Oct 20 '23 14:10 farfromrefug

@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.

nc1401 avatar Oct 20 '23 17:10 nc1401

@nc1401 it is fixed latest isn't it?

farfromrefug avatar Oct 20 '23 18:10 farfromrefug

@farfromrefug not yet, I still see the same issue

nc1401 avatar Oct 20 '23 18:10 nc1401

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

farfromrefug avatar Oct 20 '23 19:10 farfromrefug

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

nc1401 avatar Oct 23 '23 07:10 nc1401

@nc1401 a new version is out.

farfromrefug avatar Oct 23 '23 18:10 farfromrefug