Skip to main content

All Questions

-2 votes
0 answers
59 views

Error while running react - electron in browser - Uncaught ReferenceError: require is not defined

I am tryin to make a electron - react application and while running i am getting a error on the console of the browser. Uncaught ReferenceError: require is not defined at Object.events (bundle.js:...
Sherlock-Holmes-2-2-1's user avatar
0 votes
0 answers
87 views

React Electron Forge not rendering

I'm having a problem with integrating React and Electron Forge. I followed this guide: Electron Forge with react? and it actually works, BUT it only works like this: import './index.css'; import React ...
demodogo's user avatar
0 votes
0 answers
262 views

Compiled with problems: × ERROR Module not found: Error: Can't resolve

I have a Typescript project that I'm trying to get packaged into Electron via Webpack. When I do npm run start I get the following errors: Compiled with problems: × ERROR Module not found: Error: Can'...
Jorge Rodriguez's user avatar
1 vote
0 answers
37 views

When importing bundle into existing, working React project I get 'React is not defined'

I've tried no fewer than 50 ways to bundle this and they all result in either: React is not defined or react is not defined. My webpack.config.js to bundle my component library currently looks like ...
Slbox's user avatar
  • 12k
0 votes
0 answers
54 views

Module parse failed Unexpected character � need an appropriate loader to handle this file type currently no loaders are configured to process the file

I am trying to use 'node-crc' in my react electron app, I am trying to make build of the app and getting this error. ERROR in ./node_modules/node-crc/index.node 1:2 [0] Module parse failed: Unexpected ...
Abhi Kumbhani's user avatar
1 vote
0 answers
52 views

How to render a simple bundled web app in Electron?

Trying to render a simple Typescript/HTML app bundle in Electron. The app to render renders and works perfectly when I drag its index.html onto a Chrome tab. Here's what I have done: Generated an ...
user2132190's user avatar
0 votes
1 answer
101 views

WebPack + static JS files + Base64

I am developing a project in ElectronJS. While new to WebPack. WebPack packs everything into one file. But there are several files - js scripts, which are simply stored in JS files (JS libraries for ...
AlexeyD's user avatar
4 votes
2 answers
724 views

electron webpack Uncaught ReferenceError: require is not defined "querystring"

I'm trying to run an old electron app, but I can't figure out which node version to use, nor which part of the config/dependencies to update. I added electron webPreferences in the windows, but it ...
belgacea's user avatar
  • 1,144
0 votes
0 answers
141 views

React script cannot find "fs" when using Electron to read from a file, how to read a local file?

I am building this simple desktop app which counts money in a cash register. I am using react, node, and electron to build the app using web frameworks but as a desktop app. I am at the stage where I ...
Gavin's user avatar
  • 23
2 votes
0 answers
438 views

Electron application is missing some files only when installing the ".exe" file

I'm building an Electron application with these versions: electron - 22.0.0 electron-builder - 23.6.0 async npm package - 3.2.4 This is my electron-builder configuration file: module.exports = { ...
some one's user avatar
1 vote
1 answer
577 views

webpack-electron, [11440:0125/075150.232:ERROR:CONSOLE(1)] "Request Network.loadNetworkResource failed

I try to run electron using webpack, when I run electron with the watcher running then elecrone spits out the following in the console "[11440:0125/075150.232:ERROR:CONSOLE(1)] "Request ...
Ahmad Faroun's user avatar
3 votes
1 answer
1k views

How can I use multiple preload scripts for different Electron windows when using electron forge with the webpack template?

I use the typescript+webpack template from electron forge. For loading a single preload script with webpack, there is a constant called MAIN_WINDOW_PRELOAD_WEBPACK_ENTRY that can be set from the ...
frankenapps's user avatar
  • 7,607
7 votes
2 answers
1k views

Updating React and Electron and getting "Uncaught ReferenceError: global is not defined"

I have an Electron + React app that I haven't updated in a couple years, originally using these packages: "@rescripts/cli": "^0.0.13", "@rescripts/rescript-env": "^0....
Cassidy's user avatar
  • 3,368
1 vote
0 answers
243 views

"Please install the sqlite3 package manually on startup." -error on executable startup

I'm using Electron Forge with SQLite3. In development, everything works fine (rebuilding and then starting the app, since SQLite needs to be recompiled). electron-rebuild -f -w sqlite3 electron-forge ...
sm9ke's user avatar
  • 11
1 vote
1 answer
253 views

How to deal with an empty catch {} block with Webpack/Babel?

I'm dealing with an issue I'm having when trying to run my local dev environment. I'm using Webpack 2 and Babel 6. I can't seem to figure out how to get a package that contains empty catches to parse. ...
Getek99's user avatar
  • 519

15 30 50 per page
1
2 3 4 5
11