electron

Unable to find electron app

久未见 提交于 2020-01-06 05:59:15
问题 I'm running through this youtube tutorial on an Ubuntu 17.10 and when I run the build command ng build --prod && electron . the result is: Error launching app Unable to find Electron app at /home/ole/angular-electron Cannot find module '/home/ole/angular-electron' The app compiles fine, just the electron . step that is failing. The package.json contents including the main attribute look like this: "name": "angular-electron", "version": "0.0.0", "license": "MIT", "main": "main.js", I also

Google-Cloud TTS import error: ''error reading first path in the walk C:\Users\…\Documents\protos"

跟風遠走 提交于 2020-01-06 05:51:13
问题 I'm currently building an Electron app using @google-cloud/text-to-speech npm module. If I import the module, everything is fine. However, once I call it I get the following error: Uncaught Error: error reading first path in the walk C:\Users\...\Documents\protos Error: ENOENT: no such file or directory, lstat 'C:\Users\...\Documents\protos' at EventEmitter.eval (webpack:///./node_modules/walkdir/walkdir.js?:265) at Object.onceWrapper (events.js:282) at EventEmitter.emit (events.js:194) at fn

Cannot read property 'join' of undefined in Javascript file Electron JS

瘦欲@ 提交于 2020-01-06 05:43:30
问题 I have an application in Electron JS that is calling a python function to execute a python script. When the script executes it should send the data back to the Electron JS GUI and display it. The issue I am having is that it is saying that join is undefined: weather.js:9 Uncaught TypeError: Cannot read property 'join' of undefined at get_weather (weather.js:9) at HTMLButtonElement.onclick (weather.html:14) here is my JavaScript file: let {PythonShell} = require('python-shell') var path =

How can I check in SQLite whether a user id exists?

喜欢而已 提交于 2020-01-06 05:32:05
问题 I want to check that if user puts wrong id shows error. I tried like this, but didn't work. when I put wrong is, it shows notting, no error, no log, didn't go to next page. I'm using sqlite3 in electron if (err) { return console.error(err.message); alert("no id exist"); } var sql = "SELECT id, pw FROM user where id=?"; db.get( sql, [id], (err, row) => { if (err) { return console.error(err.message); alert("no id exist"); //not working!!! } console.log("db id"+row.id); console.log("db pw"+row

Electron Atom APP : Invalid URI: The format of the URI could not be determined

亡梦爱人 提交于 2020-01-05 17:45:28
问题 This is electron desktop app. While creating windows installer using this package https://www.npmjs.com/package/electron-windows-installer via gulp, i am getting following error message. gulp create-windows-installer Using gulpfile D:\bala\electron\poc\installer\app4\gulpfile.js Starting 'create-windows-installer'... 'create-windows-installer' errored after 4.49 s Error: Command failed: D:\bala\electron\poc\installer\app4\node_modul es\electron-windows-installer\vendor\nuget.exe pack C:\Users

Electron unable to fetch resources (.swf)

北城以北 提交于 2020-01-05 08:24:24
问题 I am using electron (using pepper flash plugin) to load a swf file directly into my BrowserWindow. The .swf file loads correctly but the code inside the .swf file is requesting a seperate resource ( eg: something.labels ). For some reason the something.labels file cannot be requested, everytime it fails instantly (screenshot). I cannot figure out why the error occurs, no details provided... any ideas? Network request main.js const { app, BrowserWindow } = require('electron'); const path =

Node.js & Electron: Where to require several modules?

末鹿安然 提交于 2020-01-05 07:00:52
问题 Requiring 5-10 modules in a javascript file (eg. app.js ) in a html file/render process window takes about 5 seconds to render that window, although the window is already visible. These required modules are needed for other windows as well, which seems slow. I understand that require is also synchronous. Therefore, should I: make this asynchronous, or require these modules globally for current and new windows, or call these via ipc from main.js if this is faster?, or make this faster more

Webpack Error: please install sqlite3 package manually

房东的猫 提交于 2020-01-04 06:57:07
问题 I'm building an application with Electron and Sequelize. I started to configure my database, then, I've received this error: Uncaught Error: Please install sqlite3 package manually at new ConnectionManager (/home/matheusdrdj/Documentos/Git/personal- management/node_modules/sequelize/lib/dialects/sqlite/con…:31) at new SqliteDialect (/home/matheusdrdj/Documentos/Git/personal- management/node_modules/sequelize/lib/dialects/sqlite/ind…:14) at new Sequelize (/home/matheusdrdj/Documentos/Git

Electron: renderer access to main process?

你。 提交于 2020-01-04 05:32:56
问题 The main process opens a connection to a service, to which a renderer requires access. Is this possible? I've tried declaring global.thing and exports.thing , and having the renderer require('electron').remote.thing — where thing is a function or scalar — but no luck. 回答1: You can do it in more ways: 1) Communicate between process with ipc and ask data with ipcRenderer.sendSync function, that asks to main process and wait for a return value. https://github.com/electron/electron/blob/master

Access TFS and visualstudio online REST Api in Electron/angularjs app

半城伤御伤魂 提交于 2020-01-03 19:29:11
问题 Whats the best way to integrate with TFS and visual studio online in Electron, using angularjs? The users can provide username, password, and URL for the server, and I want to get projects, tasks, move tasks between states, create new items etc I have a project using angularjs and electron. I want to get my projects, tasks etc from Microsoft Team foundation server (installed on-premise) and visual studio online too. I found documentation about basic auth and oAuth to do this, but I guess