Skip to content

Object(...) is not a function #14

@sergiocarral1

Description

@sergiocarral1

Hi,

Sorry if my question doesn't make sense I new with angular and ionic
I tried the Scan example and when I launch the ionic serve it returns this error:

PairPage.html:31 ERROR TypeError: Object(...) is not a function
at BLE.scan (index.js:28)
at PairPage.webpackJsonp.73.PairPage.scan (pair.ts:79)
at Object.eval [as handleEvent] (PairPage.html:31)
at handleEvent (core.js:13589)
at callWithDebugContext (core.js:15098)
at Object.debugHandleEvent [as handleEvent] (core.js:14685)
at dispatchEvent (core.js:10004)
at core.js:10629
at HTMLButtonElement. (platform-browser.js:2628)
at t.invokeTask (polyfills.js:3)

Are we taking device and error as function when they are objects?

The only thing that is different is the import:
import { BLE } from '@ionic-native/ble/ngx';

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