question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot read property 'app' of undefined

See original GitHub issue

Electron 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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
mathieupothiercommented, Sep 16, 2020

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.

2reactions
nathanbucharcommented, Nov 16, 2020

@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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found