nativescript-community / nativescript-community/ui-canvas

NativeClass not found error

Open
#47 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
38
Forks
9
PR merge metrics
No merged PRs in 30d

Description

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/ui-chart@1.2.32
    @nativescript/android@8.5.0
    @nativescript/core@8.5.9
    @nativescript/ios@8.5.2
  • 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)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the iOS launch failure with the listed NativeScript and @nativescript-community/ui-chart versions. Inspect node_modules/@nativescript-community/ui-canvas/index.ios.js and the import path through charts/BarLineChartBase.js; done means the app launches without the NativeClass ReferenceError.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, typescript
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.