python-eel / Eel

A little Python library for making simple Electron-like HTML/JS GUI apps
MIT License
6.44k stars 587 forks source link

Launch Electron-React App that uses ES6 syntax #428

Open UrbiJr opened 3 years ago

UrbiJr commented 3 years ago

hi there, first of all a big thank you for this amazing library. I was wondering how can I launch a React app (like this ) but which makes use of ES6 syntax? E.g. import { app } from 'electron' on index.js

I already tested the example on a React app and it worked great, but now I have to make it work with ES6 syntax. This is the command eel/electron.py executes: C:\\Users\\UrbiJ\\Downloads\\my-gui-project\\node_modules\\electron\\dist\\electron.exe --disable-http-cache . http://localhost:3000/ and it will throw the error: Screenshot_31

Thank you in advantage for your huge work.