Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it working on electron and support webpack?(mac os x 10.12.6) #51

Open
hello-chenchen opened this issue Jan 24, 2019 · 3 comments
Open

Comments

@hello-chenchen
Copy link

hello-chenchen commented Jan 24, 2019

Hi,
When using node-ffi(ps: i know node-ffi also maintained by you.) in electron to load DynamicLibrary. there is a problem when executing require('ffi'), and the error log in electron console:

Uncaught ReferenceError: bindings is not defined
at Object.<anonymous> (external "bindings":1)
at e (bootstrap:44)
at Object.<anonymous> (ref.js:5)
at e (bootstrap:44)
at Object.<anonymous> (ffi.js:6)
at e (bootstrap:44)
at Module.<anonymous> (Clipboard.js:4)
at e (bootstrap:44)
at Module.<anonymous> (index.js:10)
at e (bootstrap:44)

and i use webpack 4 to build source code.
Wanted to know if bindings support electron 4.0.1 | webpack 4 on mac os x 10.12.6. thanks~

@hello-chenchen
Copy link
Author

the whole source code can be found in:
system-operate-tools branch es2015-node-ffi

@hello-chenchen
Copy link
Author

node-ffi is installed in --build-from-source

@sumshare
Copy link

#50 when use electron-vue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants