Skip to content

QRCodeReaderDelegate is not defined #290

@MarcoDomeneghettiAlfaSistemi

Description

Hi, I'm facing this error that the nativescript+angular app launch and Crash immediately on iOS (emulator and physical device), here is the log:

**** Fatal JavaScript exception - application has been terminated. ****
  NativeScript encountered a fatal error:
  Error calling module function
  ReferenceError: QRCodeReaderDelegate is not defined
  File: (file: src/webpack:/xxx/webpack/bootstrap:27:0)
  StackTrace:
        (file: src/webpack:/xxx/node_modules/nativescript-barcodescanner/barcodescanner.ios.js:426:0)
        at ./node_modules/nativescript-barcodescanner/barcodescanner.ios.js(file: src/webpack:/xxx/node_modules/nativescript-barcodescanner/barcodescanner.ios.js:428:1)
        at __webpack_require__(file: src/webpack:/xxx/webpack/bootstrap:24:0)
        at fn(file: src/webpack:/xxx/webpack/runtime/hot module replacement:61:0)
        at ./src/app/app.module.ts(file:///app/bundle.js:360:85)
        at __webpack_require__(file: src/webpack:/xxx/webpack/bootstrap:24:0)
        at fn(file: src/webpack:/xxx/webpack/runtime/hot module replacement:61:0)
        at ./src/main.ts(file:///app/bundle.js:14:73)
        at __webpack_require__(file: src/webpack:/xxx/webpack/bootstrap:24:0)
        at __webpack_exec__(file:///app/bundle.js:12942:39)
        at (file:///app/bundle.js:12943:189)
        at __webpack_require__.X(file: src/webpack:/xxx/webpack/runtime/startup entrypoint:6:0)
        at (file:///app/bundle.js:12943:47)
        at (file:///app/bundle.js:12948:3)
        at require(:1:232)

nativescript 8.8.2
angular 18.0.0
nativescript-barcodescanner 4.1.2
@nativescript/ios 8.8.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions