Categories
Mastering Development

Electron issue after updating electron and typescript

I have a small electron project which I’ve just updated (Electron, typescript etc)… This is the code that’s breaking: dialog.showOpenDialog({}, (files) => { if(files && files.length > 0) { fs.readFile(files[0], ‘utf8’, (err, res) => { if (!err) { editor.setModel(monaco.editor.createModel(res, ‘javascript’)); } }) } }) It doesn’t like the {} after dialog.showOpenDialog( The error I’m getting […]