-
-
Notifications
You must be signed in to change notification settings - Fork 588
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
Windows 10 electron example app onnxruntime_binding.node not found #487
Comments
Interesting. I did some research and ran some very basic |
I believe I'm running into the same issue. (edit, might not be the same issue, didn't realize the original was cloning sample directly. Might leave this here anyway as it's been one helluva rabbit hole and hopefully it helps someone regardless) If you use the electron-forge webpack template, it has troubles loading (some) native node modules, and it's default config seems to break something (?) in I adapted the default electron template here to work with webpack/typescript: https://github.com/FrozenKiwi/transformers-test. The last 2 commits should give a pretty good idea of what you need to do in your own project to enable this very cool package. But in short:
After this, when you make/install, you should see in your packages in /local/app.../resources/app/node_module, and running the app works similar to the provided template |
System Info
transformers.js: ^2.6.2
Using the example app here https://github.com/xenova/transformers.js/tree/main/examples/electron
Tried both node 18 & 20 on fresh windows 10 home bootcamp install on an intel mac.
Environment/Platform
Description
Reproduction
On Windows 10 Home:
Just tested this same flow on a mac and it works fine...
Thanks in advance for any help!
The text was updated successfully, but these errors were encountered: