

Electron api client file system code#
Most of Electron's APIs are written in C++ or Objective-C and are exposed directly to the application code through JavaScript bindings. menus, shell commands, lifecycle events), and can then launch multiple renderer processes by instantiating an instance of the BrowserWindow class, which loads a window that appears on the screen by rendering HTML and CSS.īoth the main and renderer processes can run with Node.js integration if the nodeIntegration field in the main process is set to true. The main process runs the logic for the application (e. Architecture Įlectron applications include a "main" process and several "renderer" processes. It also uses various APIs to enable functionality such as native integration with Node.js services and an inter-process communication module.Įlectron was originally built for Atom and is the main GUI framework behind several open-source projects including Atom, GitHub Desktop, Light Table, Visual Studio Code, WordPress Desktop and Eclipse Theia. The framework is designed to create desktop applications using web technologies (mainly HTML, CSS and JavaScript, although other technologies such as front-end frameworks and Web Assembly are possible) that are rendered using a version of the Chromium browser engine and a back end using the Node.js runtime environment.
Electron api client file system software#
"fork-ts-checker-webpack-plugin": "^5.2.C++, JavaScript, Objective-C++ and Objective-CĮlectron (formerly known as Atom Shell ) is a free and open-source software framework developed and maintained by OpenJS Foundation.

"start": "cross-env NODE_ENV=development electron-forge start", I installed ipfs-http-client and ipfs-utils "package": "npm-run-all build package:dist", "build:react": "cross-env NODE_ENV=production webpack -config webpack/", "build:electron": "cross-env NODE_ENV=production webpack -config webpack/", "build:run": "npm-run-all build start:electron", "build": "npm-run-all build:electron build:react",

"electron:serve": "wait-on http-get://localhost:4000/ & yarn dev:electron", "dev:react": "cross-env NODE_ENV=development webpack serve -config webpack/ -mode development", "dev:electron": "cross-env NODE_ENV=development webpack -config webpack/ -mode development & yarn start:electron", "dev": "npm-run-all -p dev:react electron:serve", How do you import the module, Could you show your import code? IpfsPlaying/.webpack/main/index.js:12181:19)Īt Module./src/main.ts (/home/marco/webMatters/electronMatters/IpfsPlaying/.webpack electronMatters/IpfsPlaying/.webpack/main/index.js:15565:14)Īt Object./node_modules/ipfs-http-client/src/index.js (/home/marco/webMatters/electronMatters IpfsPlaying/.webpack/main/index.js:15609:37)Īt Object./node_modules/ipfs-utils/src/files/url-source.js (/home/marco/webMatters electronMatters/IpfsPlaying/.webpack/main/index.js:16153:31)Īt _webpack_require_ (/home/marco/webMatters/electronMatters/IpfsPlaying/.webpackĪt Object./node_modules/ipfs-utils/src/http.js (/home/marco/webMatters/electronMatters TypeError: Class extends value undefined is not a constructor or nullĪt Object./node_modules/ipfs-utils/src/http/ (/home/marco/webMatters I get the same error: A JavaScript error occurred in the main process I tried to move all those ipfs-related lines to the main process in main.ts, but with just these two lines: export const ops = async () => ))
