diego3g/electron-typescript-react

can't use package "ffi-napi"

Closed this issue · 1 comments

I clone this repo
add two lines code to main.ts

image

then i run the subject
yarn install
yarn add ffi-napi
yarn start

I get a error

image

I started looking for a solution, I found some people using this method:

image

It runs well. but when a yarn package,

1640228030(1)

I commit my code to this repo: https://github.com/nanchengjiumeng/justfun

I spent hours trying other things, but nothing worked

run well after eleteon-rebuild.