Git Product home page Git Product logo

Comments (6)

Pimentoso avatar Pimentoso commented on August 24, 2024

I temporarily solved this by using johnny-five directly from the repo, since serialport has been updated to 10.5 which is N-API compliant

    "johnny-five": "rwaldron/johnny-five",

And now electron does not complain about native modules in renderer.

I would still like a full example of johnny-five usage in electron with proper context isolation.

from johnny-five.

ikcsup avatar ikcsup commented on August 24, 2024

Hi @Pimentoso ,

could you please explain to a newby how to solve this? I'm trying to simply test led blinking so i can go on with the development, but i'm seriously stuck with this problem.

Thanks a lot.

from johnny-five.

Pimentoso avatar Pimentoso commented on August 24, 2024

Sure @ikcsup I will try making the led blink example work and push it on a repo so you can see the whole thing.

from johnny-five.

Pimentoso avatar Pimentoso commented on August 24, 2024

Sorry, still not working I'm afraid. It started raising the error again as soon as I connected the arduino to the USB.

image

from johnny-five.

JFigueroa51 avatar JFigueroa51 commented on August 24, 2024

@Pimentoso, did you ever find a way around this? I'm looking to make a simple app with J5 and I was hoping to use electron for the UI, but I don't want to use really old versions of electron if possible

from johnny-five.

Pimentoso avatar Pimentoso commented on August 24, 2024

@JFigueroa51 nope sorry. In the end I kept using Electron 9 with Node 12 and updated all the libraries to the latest supported versions. It's a shame because I can't natively build a release for ARM macbooks anymore.
Also J5 doesn't look maintained anymore and I'm not good enough at node to fork and fix it myself.

from johnny-five.

Related Issues (20)

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.