阿沈是也
阿沈是也
同时开启```nodeIntegration```和```contextIsolation```的问题,若```contextIsolation: false```则正常: 代码片段: electron\main\index.ts ```ts webPreferences: { webSecurity: false, // 允许跨域请求 preload, nodeIntegration: true, contextIsolation: true, }, ``` electron\preload\index.ts ```ts import { contextBridge } from 'electron' import Store from 'electron-store'...
还有securityJsCode
> When running in development mode with Vite, any of the versions mentioned in the title causes the following error related to the Babel dependency: > > ``` > Could...
> When running in development mode with Vite, any of the versions mentioned in the title causes the following error related to the Babel dependency: > > ``` > Could...
确保渲染进程的依赖都在devDependencies,主进程的依赖都在dependencies