You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
src/main.ts:20:7 - error TS2322: Type '{ preload: string; nodeIntegration: false; worldSafeExecuteJavaScript: true; contextIsolation: true; }' is not assignable to type 'WebPreferences'.
Object literal may only specify known properties, and 'worldSafeExecuteJavaScript' does not exist in type 'WebPreferences'.
node_modules/electron/electron.d.ts:12965:5
12965 webPreferences?: WebPreferences;
~~~~~~~~~~~~~~
The expected type comes from property 'webPreferences' which is declared here on type 'BrowserWindowConstructorOptions'
src/main.ts:177:7 - error TS2322: Type '{ sandbox: true; webSecurity: true; contextIsolation: true; webviewTag: false; enableRemoteModule: false; allowRunningInsecureContent: false; nodeIntegration: false; nodeIntegrationInWorker: false; nodeIntegrationInSubFrames: false; nativeWindowOpen: false; safeDialogs: true; }' is not assignable to type 'WebPreferences'.
Object literal may only specify known properties, and 'enableRemoteModule' does not exist in type 'WebPreferences'.
node_modules/electron/electron.d.ts:12965:5
12965 webPreferences?: WebPreferences;
~~~~~~~~~~~~~~
The expected type comes from property 'webPreferences' which is declared here on type 'BrowserWindowConstructorOptions'
Found 2 errors.
What should the expected behavior be
Platform Affected
[ ] Dev
[ ] Preview
[ ] Production
Steps to Reproduce
Steps to reproduce the behavior
Additional context
win 10 and Debian
Relevant screenshots
If applicable, add screenshots to help explain your problem.
The text was updated successfully, but these errors were encountered:
I have the same issue and I've changed electron to 11.0.1 which did not resolve the issue for me. I do however get a new error electron exited with signal SIGABRT.
Description of Bug
after npn install, there are some warn/errors about vuln. I updated with npm audit fix --force and launch npm start.
there is error below. i tried on Windows 10 and under Debian and it is the same issue
src/main.ts:20:7 - error TS2322: Type '{ preload: string; nodeIntegration: false; worldSafeExecuteJavaScript: true; contextIsolation: true; }' is not assignable to type 'WebPreferences'.
Object literal may only specify known properties, and 'worldSafeExecuteJavaScript' does not exist in type 'WebPreferences'.
20 worldSafeExecuteJavaScript: true,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/electron/electron.d.ts:12965:5
12965 webPreferences?: WebPreferences;
~~~~~~~~~~~~~~
The expected type comes from property 'webPreferences' which is declared here on type 'BrowserWindowConstructorOptions'
src/main.ts:177:7 - error TS2322: Type '{ sandbox: true; webSecurity: true; contextIsolation: true; webviewTag: false; enableRemoteModule: false; allowRunningInsecureContent: false; nodeIntegration: false; nodeIntegrationInWorker: false; nodeIntegrationInSubFrames: false; nativeWindowOpen: false; safeDialogs: true; }' is not assignable to type 'WebPreferences'.
Object literal may only specify known properties, and 'enableRemoteModule' does not exist in type 'WebPreferences'.
177 enableRemoteModule: false,
~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/electron/electron.d.ts:12965:5
12965 webPreferences?: WebPreferences;
~~~~~~~~~~~~~~
The expected type comes from property 'webPreferences' which is declared here on type 'BrowserWindowConstructorOptions'
Found 2 errors.
What should the expected behavior be
Platform Affected
[ ] Dev
[ ] Preview
[ ] Production
Steps to Reproduce
Steps to reproduce the behavior
Additional context
win 10 and Debian
Relevant screenshots
If applicable, add screenshots to help explain your problem.
The text was updated successfully, but these errors were encountered: