How to get node-sqlite3 working on Mac M1?

Issue I’m using Rosetta 2 with Homebrew and have sqlite3 installed. I added these to my ~/.zshrc so that the node compiler can find the brew installs: export PATH="/usr/local/opt/sqlite/bin:$PATH" export LDFLAGS="-L/usr/local/opt/sqlite/lib" export CPPFLAGS="-I/usr/local/opt/sqlite/include" I’m using installing using npm install sqlite3,

Continue reading

MSBUILD : Configuration error MSB4148 "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\4.0" has zero length

Issue I’m trying yo install electron-chromedrive by using yarn, so by doing this command: yarn add –dev electron-chromedriver –network-timeout 100000 But it gives the following error: MSBUILD : Configuration error MSB4148 "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\4.0" has zero length Precisely: gyp ERR! build error

Continue reading

Electron Builder cannot move downloaded into final location (another process downloaded faster?) error=rename

Issue “electron-builder”: “^20.38.5” Not using electron updater Target: Windows Running electron builder on windows 10 Home build process cannot package and presents this error cannot move downloaded into final location (another process downloaded faster?) error=rename C:\Users\Developer\AppData\Local\electron-builder\Cache\winCodeSign\105845327 C:\Users\Developer\AppData\Local\electron-builder\Cache\winCodeSign\winCodeSign-2.4.0: Access is denied.

Continue reading

Having an 'SyntaxError: Unexpected token 'export' Issue with my Electron-Ionic Application

Issue //Having this issue and I don’t know how to solve it: Uncaught C:\Users\Zac\ionic_projects\robot-backup-4\node_modules\@ionic\core\components\index.js:4 export { setAssetPath, setPlatformOptions } from ‘@stencil/core/internal/client’; ^^^^^^ SyntaxError: Unexpected token ‘export’ at new Script (vm.js:101:7) at createScript (vm.js:262:10) at Object.runInThisContext (vm.js:310:10) at wrapSafe (internal/modules/cjs/loader.js:979:15) at

Continue reading

'The "path" argument must be of type string. Received null' in electron-json-storage

Issue I’m using eletron-json-storage like this: settings.js: const storage = require(‘electron-json-storage’); const defaultStoragePath = storage.getDefaultDataPath(); // Value: C:\Users\10467\AppData\Roaming\maplateditor\storage … defaultStorage() { console.log("Check defaultStorage value"); console.log(defaultStoragePath); // C:\Users\10467\AppData\Roaming\maplateditor\storage storage.setDataPath(defaultStoragePath); console.log(storage.getDataPath()); // C:\Users\10467\AppData\Roaming\maplateditor\storage return storage; } … this.defaultStorage().get(…) And I checked every

Continue reading

'The "path" argument must be of type string. Received null' in electron-json-storage

Issue I’m using eletron-json-storage like this: settings.js: const storage = require(‘electron-json-storage’); const defaultStoragePath = storage.getDefaultDataPath(); // Value: C:\Users\10467\AppData\Roaming\maplateditor\storage … defaultStorage() { console.log("Check defaultStorage value"); console.log(defaultStoragePath); // C:\Users\10467\AppData\Roaming\maplateditor\storage storage.setDataPath(defaultStoragePath); console.log(storage.getDataPath()); // C:\Users\10467\AppData\Roaming\maplateditor\storage return storage; } … this.defaultStorage().get(…) And I checked every

Continue reading

'The "path" argument must be of type string. Received null' in electron-json-storage

Issue I’m using eletron-json-storage like this: settings.js: const storage = require(‘electron-json-storage’); const defaultStoragePath = storage.getDefaultDataPath(); // Value: C:\Users\10467\AppData\Roaming\maplateditor\storage … defaultStorage() { console.log("Check defaultStorage value"); console.log(defaultStoragePath); // C:\Users\10467\AppData\Roaming\maplateditor\storage storage.setDataPath(defaultStoragePath); console.log(storage.getDataPath()); // C:\Users\10467\AppData\Roaming\maplateditor\storage return storage; } … this.defaultStorage().get(…) And I checked every

Continue reading

Electron "ready-to-show" event not working as expected

Issue Here is a block of code from my application Codey. src/main.py // Show window once it has finished initialising docsWindow.once("ready-to-show", () => { if (darkMode) { docsWindow.webContents.send("dark-mode:toggle"); } if (!isDarwin) { docsWindow.webContents.send("platform:not-darwin"); } docsWindow.webContents.send("docs:jump", section); docsWindow.show(); }); src/docs/renderer.js window.api.darkMode.toggle.receive(toggleDarkMode);

Continue reading

How can I assign local variables in node js

Issue I make a mailer with nodejs but i have some problems. var smtpSender; var smtpMailAdress; ipcMain.on("mail:send", (err, data) => { db.query("SELECT * FROM mail_accounts", (error, results, fields) => { var string=JSON.stringify(results); var json = JSON.parse(string); smtpSender = nodemailer.createTransport({ host:

Continue reading

Integrat @chilkat/ck-electron16-win-ia32 in electron project

Issue Actualy I try to intgrat but I face to this exception my node version is 16.3.2 32bit C:\Users\PC\Desktop\electron_project_X32\node_modules\express\lib\application.js:630 Error: Loading non-context-aware native module in renderer: ‘\\?\C:\Users\PC\Desktop\electron_project_X32\node_modules\@chilkat\ck-electron16-win-ia32\chilkat.node’. See https://github.com/electron/electron/issues/18397. at process.func [as dlopen] (node:electron/js2c/asar_bundle:5) and this is may package.json "devDependencies":

Continue reading

angular 5 with electron-packager

Issue I try to build my electron project to window app by using electron-packager but I get this error. Failed to locate module “fsevents” from “/var/www/windowapp/electron-angular-project/node_modules/@angular-devkit/core/node_modules/chokidar” This normally means that either you have deleted this package already somehow (check your

Continue reading

contextBridge.exposeInMainWorld and IPC with Typescript in Electron app: Cannot read property 'send' of undefined

Issue I defined contextBridge ( https://www.electronjs.org/docs/all#contextbridge ) in preload.js as follows: const { contextBridge, ipcRenderer } = require("electron") contextBridge.exposeInMainWorld( "api", { send: (channel, data) => { ipcRenderer.invoke(channel, data).catch(e => console.log(e)) }, receive: (channel, func) => { console.log("preload-receive called. args: ");

Continue reading

Angular 2's two-way binding not working on initial load of electron app

Issue I have the following files: topnav.component.ts import { Component } from ‘@angular/core’; import { EnvironmentService } from ‘../services/ipc/environment.service’; const { ipcRenderer } = electron; @Component({ selector: ‘app-topnav’, templateUrl: ‘./topnav.component.html’, styleUrls: [‘./topnav.component.scss’] }) export class TopnavComponent { version: string =

Continue reading

Material sidenav causing problem with translate and flex css properties

Issue So, currently working with my electron app having a sidenav structure like this: <!– main container –> <mat-drawer-container> <mat-drawer>parent sidenav</mat-drawer> <mat-drawer-content> parent content <mat-drawer-container> inside child container <mat-drawer>inside child sidenav</mat-drawer> <mat-drawer-content> inside child content <app-route>current problem occurs here</app-route> </mat-drawer-content>

Continue reading