Susan Harkins (406) [Avatar] Offline
#1
Please post errors found in the published version of Electron in Action here. If necessary, we'll compile a comprehensive list for everyone's convenience. Thank you for participating in the collection process. Your contributions are a great help to us and other readers.

Regards,
Susan Harkins
Errata Editor
625713 (4) [Avatar] Offline
#2
In page 22, the command to install Electron is mentioned as

npm install electron–-save


but the right command is

npm install electron --save-dev
625713 (4) [Avatar] Offline
#3
Page 26, listing 2.6

it says

app.on('ready', () => {
    console.log('Hello from Electron.');
    mainWindow = new BrowserWindow();
    mainWindow.webContents.loadFile('index.html');
});


it should say

app.on('ready', () => {
    console.log('Hello from Electron.');
    mainWindow = new BrowserWindow();
    mainWindow.webContents.loadFile('file://${__dirname}/index.html')
});
625713 (4) [Avatar] Offline
#4
This message originally contained an errata that, after further investigation, resulted in an error from my part. I do not have the power to delete the post, so I replace it with this message, hoping the Adm could remove it.

Regards
625713 (4) [Avatar] Offline
#5
page 141


markdownView.addEventListener('contextmenu', (event) => {
event.preventDefault();
markdownContextMenu.popup();
});


Should be


markdownView.addEventListener('contextmenu', (event) => {
event.preventDefault();
markdownContextMenu.popup([]);
});
Susan Harkins (406) [Avatar] Offline
#6
From a reader:

On page 63 (listing 3.13) there is one line that says:

"args":
"."
]


when it should be

"args": [
"."
]