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
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import renderer from 'vite-plugin-electron-renderer'
export default defineConfig({
plugins: [
vue(),
renderer()
],
})
shows
[ Farm ] Error: Failed to start the server
Caused by: Error: Vite plugin 'vite-plugin-electron-renderer' is not compatible with Farm for now. Because it uses viteConfig.build['commonjsOptions'] which is not supported by Farm. Current supported keys are: outDir,sourcemap,minify,cssMinify,ssr,watch,rollupOptions,assetsDir
i have a web project used in electron's browserWindow, in vite, i use vite-plugin-electron-renderer. is there a way to use in farm?
In my web project
import pidusage from 'pidusage'
console.log(pidusage)
I checked to see if the api is compatible. Electron farm has its own plugin you can try example
you mean @farmfe/js-plugin-electron? it's not suitable for this situation, this is a online web project that opened in electron's BrowserWindow
In webpack, i will use
Steps to reproduce
in farm.config.js
shows
i have a web project used in electron's browserWindow, in vite, i use vite-plugin-electron-renderer. is there a way to use in farm?
In my web project
or is there a way to make this work?
System Info
The text was updated successfully, but these errors were encountered: