Electron Apps not working in version 1.4

Hi, 

I'm testing the new tms webcore 1.4 
I'm using Delphi Rio 10.3.3,

I Create a Electron app with an empty form, hit Run and got an error

Hi, 
I'm testing the new tms webcore 1.4 
I'm using Delphi Rio 10.3.3,

I Create a Electron app with an empty form, hit Run and got an error

Erro details in this link 

https://ibb.co/YBCJpcb

Regards

Jose

Did you update Electron to v8?

Hi Bruno,


I have the latest version 9.0.2

Hi,


We just tested a project creation with 9.0.2 and it worked. The 'screen' module is generally an issue in older versions, can you please make sure that you really have 9.0.2 installed and it has not been modified by something?
You can write 'electron --version' in the command prompt to check the version you have. The output says v9.0.2 then please send us a test project for further investigation.

Tunde Keller2020-06-04 09:57:13

Hi Tunde,



It's working , I uninstalled and install electron again and it working fine now.

Thanks you 

Well,


It's Running but I found several problems.

1 - The Electron app start with a size where I only can see the default electron menu
2 -  No components apears in the App, even a simpe button, only a blanck screen.
  I also opened the Electron demos from the tms webcore demo folder and got the same result.

very strange
Good to hear that you got the correct version working.
If you see an empty window then I assume something went wrong in JavaScript. You already see the default menu, can you check the Developer Tools for any possible errors?
You can access it via View > Toggle Developer Tools.

Hi Tundle,


Thanks for the help, 

I got this errors in Google developer tools

Uncaught TypeError: Cannot read property 'ipcRenderer' of null
    at Object.InitPaths (WEBLib.Electron.pju:0)
    at Object.ElectronPath (WEBLib.Electron.pju:0)
    at Object.$mod.$init (WEBLib.Electron.pju:0)
    at loadimpl (rtl.js:208)
    at Object.loaduseslist (rtl.js:184)
    at loadimpl (rtl.js:196)
    at Object.loaduseslist (rtl.js:184)
    at Object.loadimpl (rtl.js:196)
    at doRun (rtl.js:138)
    at Object.run (rtl.js:156)
security-warnings.ts:181 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
This warning will not show up
once the app is packaged.


Hi,


I can see from this that you are using a trial version of Web Core. At this moment Electron is only supported in the registered version. We'll work on enabling it in the trial version as well.

Hi,



Thanks for the update,

But in trial version 1.3.8 all was working fine

Yes, for support for Electron 8,9 changes were needed and this impacts the trial version.
We're looking to solve this. 
The full registered version is fine.