1. Error reporting using require:
nodeIntegration: true, contextIsolation: false
<meta http-equiv="Content-Security-Policy" content="default-src; style-src 'self' 'unsafe-inline'; media-src *;connect-src *;script-src * 'unsafe-inline' 'unsafe-eval';">
2. const electron = require(‘electron’) The following error is reported after using the contents. Uncaught TypeError: Cannot read property ‘dialog’ of undefined
Similar Posts:
- Causes and solutions of error reporting in require setting dynamic path
- Uncaught type error: create-react-app and electronfs.existsSync is not a function
- How to Solve Electronic forge packer Error
- How to Solve Vue3 ts setup getCurrentInstance Error
- [Solved] You must depend on an EXACT version of “electron-prebuilt-compile” not a range (got “^4.0.0”)
- error An unexpected error occurred: “EPERM: operation not permitted, scandir ‘E:\\aPritice\\JDe\\e
- [Solved] NetworkError: Failed to execute ‘send’ on ‘XMLHttpRequest’: Failed to load xxxx
- How to Solve error: command SH – C node install.js when installing electron
- JS Uncaught TypeError: Cannot read property ‘style’ of undefined(…)