Unfortunately, I cannot get it to work: Neither npm run dev nor npm run build works on my machine.
After following the instructions I don't get the Flutter Hello, World! screen.
When opening the developer console in the application, I see the following output:
electron/js2c/renderer_init.js:91 Unable to load preload script: /home/elias/electron-flutter/preload.js
electron/js2c/renderer_init.js:91 Error: Cannot find module '/home/elias/electron-flutter/preload.js'
at Module._resolveFilename (internal/modules/cjs/loader.js:972)
at Function.i._resolveFilename (electron/js2c/renderer_init.js:35)
at Module._load (internal/modules/cjs/loader.js:848)
at Function.f._load (electron/js2c/asar_bundle.js:5)
at Object.<anonymous> (electron/js2c/renderer_init.js:91)
at Object../lib/renderer/init.ts (electron/js2c/renderer_init.js:91)
at __webpack_require__ (electron/js2c/renderer_init.js:3)
at electron/js2c/renderer_init.js:3
at ___electron_webpack_init__ (electron/js2c/renderer_init.js:3)
at electron/js2c/renderer_init.js:172
electron/js2c/renderer_init.js:111 Electron Security Warning (Insecure Content-Security-Policy) This renderer process has either no Content Security
Policy set or a policy with "unsafe-eval" enabled. This exposes users of
this app to unnecessary security risks.
For more information and help, consult
https://electronjs.org/docs/tutorial/security.
This warning will not show up
once the app is packaged.
I am running a Linux system, though I don't know if that's related to the problem :sweat_smile:
Hey,
Thank you for this interesting template :smiley:
Unfortunately, I cannot get it to work: Neither
npm run dev
nornpm run build
works on my machine.After following the instructions I don't get the Flutter Hello, World! screen. When opening the developer console in the application, I see the following output:
I am running a Linux system, though I don't know if that's related to the problem :sweat_smile:
Best regards, Elias