GregVido / mica-electron

Library to add mica effect of windows 11 in electron app
Apache License 2.0
134 stars 8 forks source link

./src/micaElectron_x64.node does not exist! Error #16

Closed snekxs closed 1 year ago

snekxs commented 1 year ago

Getting that error when I try to use this library

This is my main.js file

javascript
const path = require('path')
const { app, BrowserWindow } = require('electron')
const { PARAMS, VALUE,  MicaBrowserWindow, IS_WINDOWS_11, WIN10 } = require('mica-electron');

const createWindow = () => {
    const win = new MicaBrowserWindow({
      width: 1280,
      height: 720,
      resizable:false,

    })

    win.setDarkTheme();
    win.setMicaEffect();

    win.loadFile('index.html')
  }

    app.whenReady().then(() => {
    createWindow()

    app.on('activate', () => {
      if (BrowserWindow.getAllWindows().length === 0) createWindow()
    })
  })

  app.on('window-all-closed', () => {
    if (process.platform !== 'darwin') app.quit()
  })

and this is the error

./src/micaElectron_x64.node does not exist!
Mica-Electron: Disabled

image

Made sure that the actual file is in the node modules which it is

And these are my system specs

image

GregVido commented 1 year ago

Hello, I just made an update, let me know if it fixed the problem.

snekxs commented 1 year ago

Works perfectly now, thanks