Comments (4)
Are you sure you're on the latest version? A similar case was fixed in fc0585d.
This can also happen when you have strict CSP that doesn't allow getting the error information. Related: https://stackoverflow.com/questions/46422290/webpack-dev-server-react-content-security-policy-error
from electron-unhandled.
I should be on the latest version "electron-unhandled": "^3.0.2",
!
Not sure about CSP. As far as I can tell Vue doesn't force CSP, and I'm not sure what else would.
The vue-electron plugin I'm using sets up webpack but I don't have a webpack.config
file and I'm not currently sure about how it goes about using it.
from electron-unhandled.
@DotoPototo facing the same issue with a similar stack trace. Did you find any solution?
Using the latest version v3.0.2
from electron-unhandled.
Here is the smallest test case I could come up with to get this kind of error. It seems to me that the video element has to be too large to fit on screen and be initially hidden.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
</head>
<body>
<button onClick="go()">Click me</button>
<div id="wrapper" style="display: none;">
<video id="video" width="10000" height="10000" controls muted></video>
</div>
</body>
<script>
function go() {
const unhandled = require('electron-unhandled');
unhandled();
document.getElementById('wrapper').style.display = 'block';
}
</script>
</html>
For completeness, this is package.json and main.js:
{
"name": "electron-unhandled-bug",
"version": "1.0.0",
"description": "",
"main": "main.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"electron": "^9.1.0"
},
"dependencies": {
"electron-unhandled": "^3.0.2"
}
}
const { app, BrowserWindow } = require('electron')
function createWindow () {
const win = new BrowserWindow({
width: 800,
height: 600,
webPreferences: {
nodeIntegration: true
}
})
win.loadFile('index.html')
}
app.whenReady().then(createWindow)
app.on('window-all-closed', () => {
if (process.platform !== 'darwin') {
app.quit()
}
})
app.on('activate', () => {
if (BrowserWindow.getAllWindows().length === 0) {
createWindow()
}
})
from electron-unhandled.
Related Issues (15)
- Register it automatically on new browser windows
- Dialog message prefix HOT 3
- Duplicate dialogs and application still crashes HOT 1
- Add a filter option HOT 7
- Copy to clipboard HOT 2
- Plans to remove use of the remote module? HOT 11
- How is this different from handling the errors manually? HOT 1
- Serialized error return Buffer and it is unreadable. HOT 3
- Does not work without webpack polyfills in renderer mode HOT 2
- Allow localisation of the library HOT 1
- Hide stack trace from logError HOT 1
- Report about crashed and unresponsive page
- Only show the error dialog in production by default?
- process.on('uncaughtException') also needs hooking in the renderer HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from electron-unhandled.