zhangyuang / node-ffi-rs

Implement ffi in Node.js by Rust and NAPI
MIT License
191 stars 7 forks source link

Compile warning with electron #54

Closed zgpio closed 5 months ago

zgpio commented 5 months ago

Current ffi-rs version

1.0.76

Current Node.js arch

18.20

Descibe your problem in detail

 WARNING  Compiled with 38 warnings                                                                                                                                                   15:24:18

 warning  in ./node_modules/engine.io-client/node_modules/ws/lib/buffer-util.js

Module not found: Error: Can't resolve 'bufferutil' in 'C:\Users\zhaoguopan\workbench\node_modules\engine.io-client\node_modules\ws\lib'

 warning  in ./node_modules/engine.io-client/node_modules/ws/lib/validation.js

Module not found: Error: Can't resolve 'utf-8-validate' in 'C:\Users\zhaoguopan\workbench\node_modules\engine.io-client\node_modules\ws\lib'

 warning  in ./node_modules/ffi-rs/index.js

Module not found: Error: Can't resolve './ffi-rs.android-arm64.node' in 'C:\Users\zhaoguopan\workbench\node_modules\ffi-rs'

 warning  in ./node_modules/ffi-rs/index.js

Module not found: Error: Can't resolve '@yuuang/ffi-rs-android-arm64' in 'C:\Users\zhaoguopan\workbench\node_modules\ffi-rs'

 warning  in ./node_modules/ffi-rs/index.js

Module not found: Error: Can't resolve './ffi-rs.android-arm-eabi.node' in 'C:\Users\zhaoguopan\workbench\node_modules\ffi-rs'

 warning  in ./node_modules/ffi-rs/index.js

Module not found: Error: Can't resolve '@yuuang/ffi-rs-android-arm-eabi' in 'C:\Users\zhaoguopan\workbench\node_modules\ffi-rs'

 warning  in ./node_modules/ffi-rs/index.js

What's your expect result

no warning

zhangyuang commented 5 months ago

The warning is expected, maybe you should figure out the meaning of optionalDependencies in the front-end tool