I'm trying to deploy my application to Windows. Though, when I do so, I get the error cannot find module electron which I am presuming is down to the relative path. Here is the code that I am using to launch an instance of Nightmare:
var nightmare = Nightmare({
electronPath: require('./node_modules/electron'),
show: false,
typeInterval: 20,
waitTimeout: 15000 // in ms
});
That same code works fine during running npm start though, so I'm a little confused. Also, if I do not set electronPath, then it doesn't work for me in product nor in testing. I've been looking for a solution for hours but I've found nothing!
via Jarrod
No comments:
Post a Comment