PrismarineJS/prismarine-viewer

Electron crash on require #118

Mickman1 posted onGitHub

I'm using Electron for my minecraft bot as the interface, hud, controls, etc. and I wanted to add the prismarine viewer in a frame inside the html. Whenever I import prismarine-viewer in plain nodejs everything works fine and a server starts running on my localhost, but in Electron, the moment I execute const mineflayerViewer = require('prismarine-viewer').mineflayer, Electron crashes and the DevTools disconnect. I just want to put the viewer inside my Electron app. Any help / ideas? Thanks!


We have a dedicated example on how to run in electron: https://github.com/PrismarineJS/prismarine-viewer/tree/master/examples/electron

You can't use the mineflayer helper directly.

posted by Karang about 4 years ago

Fund this Issue

$0.00
Funded

Pull requests