Posted 4 October 2019, 1:27 am EST
Hi,
The issue occurs because Nodejs is not integrated into the electron app. When this tutorial was written, Nodejs was integrated into the electron app by default but this has been changed. So, to run the sample, all you have to do is update the main.js file to enable node integration:
mainWindow = new BrowserWindow({
width: 800,
height: 600,
webPreferences: {
preload: path.join(__dirname, 'preload.js'),
nodeIntegration: true
}
})
Also, the npm namespace has been changed from ‘wijmo’ to ‘@grapecity/wijmo’. So, I would highly recommend you to use this instead of wijmo. You can read about it more on the link below:
https://www.grapecity.com/blogs/wijmo-npm-package-changes
You may refer to the sample attached.
electron-quick-start.zip
Regards,
Ashwin