-
Notifications
You must be signed in to change notification settings - Fork 33
Description
If i run the exe created from yarn && yarn dist i get the application window but nothing more. It stops at "Loading Node-RED" i can activate the menu with ALT but see nothing in the console etc.
If i run the application with "yarn start" it works fine.
I looked with netstat and see no open port ( I fixed it at 18880 ) if i run it from dist.
I didn't change anything from the example in the readme.
Here is a similar error that have a fix, but i'm not smart enough to implement all that and make a pull request.
sakazuki/node-red-desktop#49
Here are output from console:
C:\Users\eriklindstein\projects\electron-node-red\dist\win-unpacked>"Node-RED Electron.exe"
C:\Users\eriklindstein\projects\electron-node-red\dist\win-unpacked>
Starting
ARG [
'C:\Users\eriklindstein\projects\electron-node-red\dist\win-unpacked\Node-RED Electron.exe'
]
Store C:\Users\eriklindstein\AppData\Roaming\electron_node_red
FlowFile : C:\Users\eriklindstein.node-red\electronflow.json
(node:9316) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'withFileTypes' of null
at e.readdir (electron/js2c/asar_bundle.js:5:9862)
at go$readdir (C:\Users\eriklindstein\projects\electron-node-red\dist\win-unpacked\resources\app.asar\node_modules\graceful-fs\graceful-fs.js:201:14)
at Object.readdir (C:\Users\eriklindstein\projects\electron-node-red\dist\win-unpacked\resources\app.asar\node_modules\graceful-fs\graceful-fs.js:198:12)
at Object.readdir (C:\Users\eriklindstein\projects\electron-node-red\dist\win-unpacked\resources\app.asar\node_modules\universalify\index.js:5:57)
at C:\Users\eriklindstein\projects\electron-node-red\dist\win-unpacked\resources\app.asar\node_modules@node-red\util\lib\i18n.js:53:16
at new Promise ()
at C:\Users\eriklindstein\projects\electron-node-red\dist\win-unpacked\resources\app.asar\node_modules@node-red\util\lib\i18n.js:51:16
(Use Node-RED Electron --trace-warnings ... to show where the warning was created)
(node:9316) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:9316) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Any ideas?