Closed sedubois closed 4 years ago
OK, somehow I managed to make the electron app display something by executing these commands separately in two terminal windows:
BROWSER=none ./node_modules/.bin/craco start
YOUKA_APP_URL=http://localhost:3000 ./node_modules/.bin/electron src/main.js
Hey @sedubois, browser can't execute nodejs modules, so all you need is to run "npm start" and refresh (Cmd+R) the electron window after the build is completed (I'll do it automatically in the future).
Thanks, yes I had tested with npm start
. Wasn't aware of the refresh, thanks for letting me know.
I was curious where in the code is the logic controlling the display of the subtitles (2 lines at a time with highlighting of the current one)?
currently it's implemented is server side (https://github.com/youkaclub/youka-api/blob/master/youka/captions.py#L83). the code adds css class name which defined here (https://github.com/youkaclub/youka-desktop/blob/master/src/index.css#L35)
Hi and thanks for sharing this app which I was curious to try. I've tried to run it locally by following the README instructions, but it opens an electron app with an empty screen. Is some extra setup needed or how can I debug this?
I cloned the youka-desktop repo at revision
bf45f56f1bf4032f85518a65b2fb403b9b1aa540
.Here is the
npm start
output:If I open http://localhost:3000/, I just get a blank screen, and the Javascript console has a single error
ReferenceError: require is not defined
thrown atexternal "crypto":1
(module.exports = require("crypto")
).I run on macOS 10.15.4 with Firefox 75.0.