diego3g / electron-typescript-react

:electron: An Electron boilerplate including TypeScript, React, Jest and ESLint.
1.45k stars 295 forks source link

can't use package "ffi-napi" #75

Closed nanchengjiumeng closed 1 year ago

nanchengjiumeng commented 2 years ago

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

nanchengjiumeng commented 1 year ago

run well after eleteon-rebuild.