This repo contains was creating using the Electron Forge Typescript + Webpack template:
yarn create electron-app my-new-app --template=typescript-webpack
and also includes the lzma-native
library which should be available with nodeIntegration: true
- Clone this repo
yarn
yarn package
./out/my-new-app-*/my-new-app
A log message appears in the Electron window with an object containing the lzma-native
imported library
Console error message:
Uncaught Error: Cannot find module '/native_modules/prebuilds/linux-x64/node.napi.node'
Note that running with yarn start
shows the log message as expected.