Comments (2)
I was able to get it working. Here are the steps I followed:
- 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). cd ElectronExample
yarn add -D @expo/electron-adapter
yarn expo-electron
- Get weird errors starting electron ("Error while loading shared libraries: libnss3.so") because I'm on Windows using WSL for my terminal.
- To fix the weird errors, reinstall electron with yarn in a Windows command prompt because of this.
- 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. - Compare my
package.json
to the one in this sample repo and see that@expo/webpack-config
is missing, so install it withyarn add @expo/webpack-config
. - 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.
from examples.
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)
- Is expo 47 stable / ready for adoption? HOT 1
- Damaged Link in `examples/with-pdf/App.js`
- Error running npx create-react-native-app -t with-nextjs
- New Example: Expo Router with TypeScript HOT 6
- Service worker examples incomplete, do not specify the `config` object or `PUBLIC_URL`
- Realm example app crashes with no customization
- Electron example is missing
- Storybook example broken after webpack 5 upgrade HOT 5
- Model Loading Issue
- typescript and jest template
- Could a license be officially stated?
- tuanggo HOT 1
- Calling App
- file not found #include <boost/preprocessor/control/expr_iif.hpp> HOT 1
- with-camera hangs on moving the device from portrait to landscape
- with-yarn-workspaces is failing to build for multiple reasons.
- getting this ERROR Warning: You are setting the style `{ shadowOffset: ... }` as a prop. You should nest it in a style object. E.g. `{ style: { shadowOffset: ... } }` by creating a project using yarn create-expo-app -e with-router-tailwind HOT 1
- expo prebuild and run:android suddenly stopped working
- Cannot run the `with-router-tailwind` example HOT 1
- with-html issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from examples.