Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70747

Tutorial/guide to build for Ionic-React-Electron app

$
0
0

@lewix wrote:

Hi,
i’m trying to build from scratch an app with ionic-react & electronjs, but following official "get started"guide
https://capacitor.ionicframework.com/
electron main page is blank and not correctly shown.

My commands are:

ionic start myApp blank --type=react
cd myApp

to build a new react-ionic generic app

Following this official guide
https://capacitor.ionicframework.com/docs/getting-started/with-ionic/

I added capacitor with this command:

ionic integrations enable capacitor
npx cap init
ionic build

I had to change capacitor.config.json file to link a public folder instead www folder, otherwise

npx cap add electron

could not be able do add an electron sub-project

Finally, launchin electron app with this command

npx cap open electron

Electron page was visible, but blank (seems react components was not parsed correctly)
I attach screenshot.

Thanks for anyone can help me.
Lewix

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70747

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>