felixrieseberg / electron-uwp-background

:zap: Sample explaining how to use UWP background tasks with Electron apps
MIT License
83 stars 13 forks source link

Couldn't find specified module. #2

Closed gspalato closed 5 years ago

gspalato commented 5 years ago

(Note: I followed all steps.) When I require the module and apply the .setAcrylic, it errors. The error seems to be a failed relative path that includes \\?\ before the actual path for some reason.

Error: Error: Couldn't find specified module. \\?\C:\Users\hinok\Workspace\Scar\node_modules\electron-acrylic\build\Release\ElectronAcrylic.node at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:160:31) at Object.Module._extensions..node (internal/modules/cjs/loader.js:722:18) at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:160:31) at Module.load (internal/modules/cjs/loader.js:602:32) at tryModuleLoad (internal/modules/cjs/loader.js:541:12) at Function.Module._load (internal/modules/cjs/loader.js:533:3) at Module.require (internal/modules/cjs/loader.js:640:17) at require (internal/modules/cjs/helpers.js:20:18) at bindings (C:\Users\hinok\Workspace\Scar\node_modules\electron-acrylic\node_modules\bindings\bindings.js:84:48) at Object.<anonymous> (C:\Users\hinok\Workspace\Scar\node_modules\electron-acrylic\index.js:1:199) image