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
im unable to load the preload script into the window,
BrowserWindow config:
// dont mind the createWindow functionconstwin=awaitcreateWindow("/",{minWidth: 1280,width: 1280,minHeight: 720,height: 720,webPreferences: {preload: "dist-electron/api.js"}});
nuxt.config.ts
exportdefaultdefineNuxtConfig({devtools: {enabled: false},modules: ['nuxt-electron','@nuxtjs/tailwindcss',"shadcn-nuxt","nuxt-icon","@nuxt/image",'@nuxtjs/i18n'],srcDir: "src/",css: ["~/assets/css/tailwind.css","~/assets/css/app.scss"],ssr: false,experimental: {appManifest: false},electron: {build: [{// Main-Process entry file of the Electron App.entry: 'src/electron/main.ts',},{entry: 'src/electron/preload/api.ts',onstart(args){args.reload();},}],},shadcn: {/** * Prefix for all the imported component */prefix: '',/** * Directory that the component lives in. * @default "./components/ui" */componentDir: 'src/components/ui'},image: {dir: "images/"},i18n: {locales: [{code: "en",file: "en.json"}],defaultLocale: "en",langDir: "translations/"}})
im unable to load the preload script into the window,
BrowserWindow config:
nuxt.config.ts
package.json:
The text was updated successfully, but these errors were encountered: