Coder Social home page Coder Social logo

Comments (4)

blstechds avatar blstechds commented on August 23, 2024

@sergiocarral1 I am facing the exact issue. Did you get it resolved? Please help me. If you have used another library, please suggest.
Thanks in advance.

from ionic-ble-examples.

V4NDER avatar V4NDER commented on August 23, 2024

I'm having the same problem, has anyone solved?

from ionic-ble-examples.

monkeytronics avatar monkeytronics commented on August 23, 2024

Hi All. I was looking at the very same issue. I found that by rebiulding my project and specifiying cordova in the ionic start command:

$ ionic start myApp blank --cordova

the error went away. I'm working in Ionic 4, so some other elements of this utorial will not be the same though. For instance, you'll need to change the imports to :

import { BLE } from '@ionic-native/ble/ngx';

hope this helps you.

from ionic-ble-examples.

Darkmagister avatar Darkmagister commented on August 23, 2024

i'm having the same issue, i tried the @monkeytronics solution but didn't work, also i'm using ionic 5,
here the error:

ERROR TypeError: Object(...) is not a function  
    at BLE.scan (vendor.js:81074) 
    at HomePage.webpackJsonp.248.HomePage.scan (main.js:74)  
    at Object.eval [as handleEvent] (HomePage.html:7)  
    at handleEvent (vendor.js:14225)
    at callWithDebugContext (vendor.js:15734)
    at Object.debugHandleEvent [as handleEvent] (vendor.js:15321)
    at dispatchEvent (vendor.js:10640)
    at vendor.js:11265
    at HTMLButtonElement.<anonymous> (vendor.js:40170)
    at t.invokeTask (polyfills.js:3)

also i have created a repo with the source, so you can check if there is something wrong
https://github.com/Darkmagister/testble/

from ionic-ble-examples.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.