Cannot read property 'app' of undefined
See original GitHub issueElectron version: 10.0.0 Electron-settings version: 4.0.2 Platform: Windows 10
This function of the source depends on the “remote” module which is deprecated. In the new versions of the Electron it will be removed afaik.
* Returns the Electron app. The app may need be accessed
* via `Remote` depending on whether this code is running
* in the main or renderer process.
*
* @returns The Electron app.
* @internal
*/
function getElectronApp() {
var _a;
var e = getElectron();
var app = (_a = e.app) !== null && _a !== void 0 ? _a : e.remote.app;
return app;
}
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:12 (4 by maintainers)
Top Results From Across the Web
TypeError: Cannot read property 'app' of undefined Error
TypeError : Cannot read property 'app' of undefined Error - Flutter using firebase Auth and Firestore in flutter web app - Stack Overflow. ......
Read more >TypeError: Cannot read property 'app' of undefined ... - GitHub
whenever i run the project on chrome it shows me and i just add cloud_firestore to pubspec.yaml TypeError: Cannot read property 'app' of ......
Read more >Cannot read property 'app' of undefined' In Flutter Web | Medium
How To Fix 'TypeError: Cannot read property 'app' of undefined' In Flutter Web. The stack output when FlutterFire is not configured properly.
Read more >cannot read properties of undefined (reading 'apps') firebase
It seems your code has firebase v8 while you have firebase v9 package and it has completely different import structures. This happen lot...
Read more >[Solved]cannot read property of undefined (reading 'app') in ...
When I try to run the flutter app with firebase then I got below exception in the console. Connecting to VM Service at...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I tested it in the past and it did not work back then. Got to try it again since you asked and I spotted an error on my end.
The enableRemoteModule: true needs to be in webPreferences: {}
Was:
new BrowserWindow({ enableRemoteModule: true });Needed to be:
new BrowserWindow({ webPreferences: { enableRemoteModule: true }});Now it works perfectly. So unless it’s the same for you, it seems to be working with the flag properly set.
@ThibaultJousse thanks for bumping this. It’s always been in the back of my mind, just haven’t gotten around to it, for really no good reason 😃 I’ll take care of this right now