Electronic version 16+
There is a problem when using the remote module. The code is as follows:
const BrowserWindow = require(‘electron’). remote. BrowserWindow;
report errors:
Uncaught TypeError: Cannot read property ‘BrowserWindow’ of undefined
Solution:
1. Install remote:
npm install –save @electron/remote
2. demo2.js:
3. main.js:
It’s ready to run. The version of electron is updated too fast, and the rules are changed too fast.
Read More:
- [Solved] electron Use remote Error: Cannot read properties of undefined (reading ‘BrowserWindow‘)
- [Solved] Syntax Error: TypeError: Cannot read property ‘parseComponent‘ of undefined
- [Solved] Uni.createintersectionobserver Error: Uncaught TypeError: Cannot read property ‘bottom’ of null
- [Solved] Syntax Error: TypeError: Cannot read property ‘parseComponent‘ of undefined
- Uni-app Error when assigning a value to a component: [system] TypeError: Cannot read property ‘name‘ of undefined
- [Solved] TYPEERROR: CANNOT READ PROPERTY ‘REDUCE‘ OF UNDEFINED
- [Solved] react Chrome Browser Error: Uncaught TypeError: Cannot read properties of undefined (reading ‘forEach‘)
- JS bug Log Uncaught TypeError: Cannot read property ‘previoustSibling‘ of null
- [Solved] Install The Latest Version of Jest Error: TypeError: Cannot read property ‘instrument‘ of undefined
- [Solved] Vue Error: TypeError: Cannot read property ‘end‘ of undefined
- Echarts Partially introduced error: TypeError: Cannot read property ‘findAxisModel’ of undefined
- [Solved] Uncaught Error: @electron/remote is disabled for this WebContents
- Cannot read property ‘isFile‘ of undefined [How to Solve]
- [Solved] Cannot read property ‘setCheckedKeys‘ of undefined“
- [Solved] Syntax Error: TypeError: Cannot set property ‘parent‘ of undefined
- Vue cannot read property ‘xxx’ of undefined solutions
- [Solved] HBuilder Error: Cannot read property ‘forceUpdate‘ of undefined
- [Solved] Vue element UI form verification error: cannot read property ‘validate’ of undefined
- [Vue warn]: Error in render: “TypeError: Cannot read properties of undefined
- [Solved] Vue3 Import element UI error: Uncaught TypeError: Cannot read properties of underfined…