Greetings, I am trying to run a mobile application with electron, following the steps indicated in the documentation, but immediately when I try to run the project for the first time, it compile successfull but it doesn't show any window .
i 「wds」: webpack output is served from /
i 「wds」: Content not from webpack is served from D:\Projects\Electron-React\expo-electron-app\electron\static, D:\Projects\Electron-React\expo-electron-app\dist\renderer-dll
Summary
Greetings, I am trying to run a mobile application with electron, following the steps indicated in the documentation, but immediately when I try to run the project for the first time, it compile successfull but it doesn't show any window .
Environment
Expo CLI 4.0.16 environment info: System: OS: Windows 10 10.0.18363 Binaries: Node: 12.16.1 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD npm: 6.13.4 - C:\Program Files\nodejs\npm.CMD SDKs: Android SDK: API Levels: 23, 24, 25, 26, 27, 28, 29, 30 Build Tools: 28.0.3, 29.0.2, 30.0.3 IDEs: Android Studio: Version 4.1.0.0 AI-201.8743.12.41.6953283 npmPackages: expo: ~40.0.0 => 40.0.1 react: 16.13.1 => 16.13.1 react-dom: 16.13.1 => 16.13.1 react-native: https://github.com/expo/react-native/archive/sdk-40.0.1.tar.gz => 0.63.2 react-native-web: ~0.13.12 => 0.13.18 Expo Workflow: managed
Please specify your device/emulator/simulator platform, model and version
Windows 10
Error output
D:\Projects\Electron-React\expo-electron-app>yarn desktop yarn run v1.22.5 $ yarn expo-electron start $ D:\Projects\Electron-React\expo-electron-app\node_modules.bin\expo-electron start ┏ Main -----------------------
Hash: fdd422587786ab7c3b50 Version: webpack 4.42.1 Time: 343ms Built at: 02/08/2021 12:13:05 PM Asset Size Chunks Chunk Names main.js 41.3 KiB main [emitted] main Entrypoint main = main.js [0] multi ./node_modules/electron-webpack/out/electron-main-hmr/main-hmr ./electron/main/index.js 40 bytes {main} [built] [./electron/main/index.js] 1000 bytes {main} [built] [./node_modules/electron-webpack/out/electron-main-hmr/main-hmr.js] 582 bytes {main} [built] [electron] external "electron" 42 bytes {main} [built] [electron-webpack/out/electron-main-hmr/HmrClient] external "electron-webpack/out/electron-main-hmr/HmrClient" 42 bytes {main} [built] [path] external "path" 42 bytes {main} [built] [source-map-support/source-map-support.js] external "source-map-support/source-map-support.js" 42 bytes {main} [built] [url] external "url" 42 bytes {main} [built]
┗ ---------------------------- ┏ Renderer -------------------
Using custom entry point > D:\Projects\Electron-React\expo-electron-app\node_modules\expo\AppEntry.js
┗ ---------------------------- ┏ Renderer -------------------
i 「wds」: Project is running at http://localhost:9080/
┗ ---------------------------- ┏ Renderer -------------------
i 「wds」: webpack output is served from / i 「wds」: Content not from webpack is served from D:\Projects\Electron-React\expo-electron-app\electron\static, D:\Projects\Electron-React\expo-electron-app\dist\renderer-dll
┗ ---------------------------- ┏ Renderer -------------------
i 「wdm」: Hash: abcdbc11e6fa39d7bf55 Version: webpack 4.42.1 Time: 3294ms Built at: 02/08/2021 12:13:10 PM Asset Size Chunks Chunk Names index.html 3.36 KiB [emitted] renderer.js 7 MiB renderer [emitted] renderer Entrypoint renderer = renderer.js [0] multi (webpack)-dev-server/client?http://localhost:9080 (webpack)/hot/dev-server.js css-hot-loader/hotModuleReplacement ./node_modules/expo/AppEntry.js 64 bytes {renderer} [built] [./App.ts] 330 bytes {renderer} [built] [./node_modules/@babel/runtime/helpers/interopRequireDefault.js] 147 bytes {renderer} [built] [./node_modules/css-hot-loader/hotModuleReplacement.js] 3.05 KiB {renderer} [built] [./node_modules/expo/AppEntry.js] 301 bytes {renderer} [built] [./node_modules/expo/build/launch/registerRootComponent.web.js] 1.09 KiB {renderer} [built] [./node_modules/lodash/debounce.js] 5.96 KiB {renderer} [built] [./node_modules/normalize-url/index.js] 3.85 KiB {renderer} [built] [./node_modules/webpack-dev-server/client/index.js?http://localhost:9080] (webpack)-dev-server/client?http://localhost:9080 4.29 KiB {renderer} [built] [./node_modules/webpack-dev-server/client/overlay.js] (webpack)-dev-server/client/overlay.js 3.51 KiB {renderer} [built] [./node_modules/webpack-dev-server/client/socket.js] (webpack)-dev-server/client/socket.js 1.53 KiB {renderer} [built] [./node_modules/webpack-dev-server/client/utils/createSocketUrl.js] (webpack)-dev-server/client/utils/createSocketUrl.js 2.91 KiB {renderer} [built] [./node_modules/webpack-dev-server/client/utils/log.js] (webpack)-dev-server/client/utils/log.js 964 bytes {renderer} [built] [./node_modules/webpack-dev-server/client/utils/reloadApp.js] (webpack)-dev-server/client/utils/reloadApp.js 1.59 KiB {renderer} [built] [./node_modules/webpack/hot/dev-server.js] (webpack)/hot/dev-server.js 1.59 KiB {renderer} [built]
┗ ---------------------------- ┏ Renderer -------------------
i 「wdm」: Compiled successfully.
┗ ---------------------------- ┏ Electron -------------------
┗ ---------------------------- ┏ Renderer -------------------
i 「wdm」: Compiling...
┗ ---------------------------- ┏ Electron -------------------
Debugger listening on
┗ ---------------------------- ┏ Electron -------------------
ws://127.0.0.1:5858/9bd6db58-57e0-4b66-a487-671c4e110602 For help, see: https://nodejs.org/en/docs/inspector
┗ ---------------------------- ┏ Renderer -------------------
i 「wdm」: Hash: abcdbc11e6fa39d7bf55 Version: webpack 4.42.1 Time: 382ms Built at: 02/08/2021 12:13:10 PM 1 asset Entrypoint renderer = renderer.js [./App.ts] 330 bytes {renderer} [built]
┗ ---------------------------- ┏ Renderer -------------------
i 「wdm」: Compiled successfully.
┗ ----------------------------
Reproducible demo or steps to reproduce from a blank project
I followed the documentation https://docs.expo.io/guides/using-electron/ step by step and this problem occurs to me
https://docs.expo.io/guides/using-electron/.