electron/remote

exception: Cannot read properties of undefined (reading 'members') in remote.js

jogibear9988 opened this issue · 3 comments

stacktrace:

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'members')
	at setObjectPrototype (C:\mlog\MCC\application\mcc-client-app\resources\app\node_modules\@electron\remote\dist\src\renderer\remote.js:201)
	at metaToValue (C:\mlog\MCC\application\mcc-client-app\resources\app\node_modules\@electron\remote\dist\src\renderer\remote.js:303)
	at Object.getBuiltin (C:\mlog\MCC\application\mcc-client-app\resources\app\node_modules\@electron\remote\dist\src\renderer\remote.js:360)
	at Object.get [as app] (C:\mlog\MCC\application\mcc-client-app\resources\app\node_modules\@electron\remote\dist\src\renderer\remote.js:398)
	at Object.get [as app] (C:\mlog\MCC\application\mcc-client-app\resources\app\node_modules\@electron\remote\dist\src\renderer\index.js:4)
	at index.html:326
	at index.html:350

image

the call in index.html at line 326 is:

  const app = require('@electron/remote').app;

the exception line looks like this:

image

@jogibear9988
Hi, I'm getting the same error, how did you fix it

Same problem. This issue is closed, but I don’t know what the solution is.

Please check this: #79 (comment)