Giter Club home page Giter Club logo

Comments (2)

schellack avatar schellack commented on May 15, 2024

I was able to get it working. Here are the steps I followed:

  1. Run expo init ElectronExample and complete the wizard (I select the "managed workflow" and the "tabs" template, just to have something there at the start).
  2. cd ElectronExample
  3. yarn add -D @expo/electron-adapter
  4. yarn expo-electron
  5. Get weird errors starting electron ("Error while loading shared libraries: libnss3.so") because I'm on Windows using WSL for my terminal.
  6. To fix the weird errors, reinstall electron with yarn in a Windows command prompt because of this.
  7. Realize that this added the latest version of electron, and the version of electron in the example repo here is older. So I downgrade to 6.0.12 and yarn install again.
  8. Compare my package.json to the one in this sample repo and see that @expo/webpack-config is missing, so install it with yarn add @expo/webpack-config.
  9. Run yarn expo-electron start from the Windows command prompt (it won't work for me from WSL terminal)

A key thing for me was comparing this repo example to my "clean" project where I did expo init and followed the instructions from the guide.

image

from examples.

yungkittty avatar yungkittty commented on May 15, 2024

I've followed the same documentation on my side too. However, I've always the same error about a main.js(|| ts) missing. That's why I've looked for an example like the one on this repository. Still, I've always the same error even though I've fresh clone this repository and yarn desktop. @EvanBacon is it suppose to be a working example or it's just a template (so the index.js would be missing)?

from examples.

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.