Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS Vue MLKObjectDetectorOptions not defined #52

Open
mastashake08 opened this issue May 30, 2023 · 0 comments
Open

iOS Vue MLKObjectDetectorOptions not defined #52

mastashake08 opened this issue May 30, 2023 · 0 comments

Comments

@mastashake08
Copy link

When I run the code I am getting this error
Uncaught ReferenceError: MLKObjectDetectorOptions is not defined

Steps to recreate

Load MLKitView in app.js

import MLKit from '@nativescript/mlkit-core/vue'

Vue.use(MLKit)

Load view in Home.vue

<MLKitView cameraPosition="back" detectionType="all" :detection="onDetection" />

Run code

ns run ios

Error log

 ***** Fatal JavaScript exception - application has been terminated. *****
  NativeScript encountered a fatal error: Uncaught ReferenceError: MLKObjectDetectorOptions is not defined
  at
  _setupObjectDetection(file: app/webpack:/magic-app/node_modules/@nativescript/mlkit-core/index.ios.js:324:0)
  at _setupDetectors(file: app/webpack:/magic-app/node_modules/@nativescript/mlkit-core/index.ios.js:187:0)
  at initNativeView(file: app/webpack:/magic-app/node_modules/@nativescript/mlkit-core/index.ios.js:85:0)
  at setNativeView(file: app/webpack:/magic-app/node_modules/@nativescript/core/ui/core/view-base/index.js:746:0)
  at _setupUI(file: app/webpack:/magic-app/node_modules/@nativescript/core/ui/core/view-base/index.js:719:0)
  at (file: app/webpack:/magic-app/node_modules/@nativescript/core/ui/core/view-base/index.js:726:0)
  at eachChildView(file: app/webpack:/magic-app/node_modules/@nativescript/core/ui/layouts/layout-base-common.js:101:0)
  at eachChild(file: app/webpack:/magic-app/node_modules/@nativescript/core/ui/core/view/view-common.js:811:0)
  at _setupUI(file: app/webpack:/magic-app/node_modules/@nativescript/core/ui/core/view-base/index.js:725:0)
  at (file: app/webpack:/magic-app/node_modules/@nativescript/core/ui/core/view-base/index.js:726:0)
  at eachChildView(file: app/webpack:/magic-app/node_modules/@nativescript/core/ui/content-view/index.js:65:0)
  at eachChildView(file: app/webpack:/magic-app/node_modules/@nativescript/core/ui/page/page-common.js:106:0)
  at eachChild(file: app/webpack:/magic-app/node_modules/@nativescript/core/ui/core/view/view-common.js:811:0)
  at _setupUI(file: app/webpack:/magic-app/node_modules/@nativescript/core/ui/core/view-base/index.js:725:0)
  at _addViewCore(file: app/webpack:/magic-app/node_modules/@nativescript/core/ui/core/view-base/index.js:544:0)
  at _addView(file: app/webpack:/magic-app/node_modules/@nativescript/core/ui/core/view-base/index.js:530:0)
  at UIViewControllerImpl.viewWillAppear(file: app/webpack:/magic-app/node_modules/@nativescript/core/ui/page/index.ios.js:116:0)


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant