-
Notifications
You must be signed in to change notification settings - Fork 791
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
[Bug] Cannot get transformer working in electron browser #410
Comments
Could you please try logging what the values for If you are able to provide a reproduction, that would help with the debugging process to :) |
Sorry, I forgot to mention that I was developing an Obsidian plugin, so the code can only run in the browser environment. While debugging, I found that the actual value is |
Running into the same issue. Any possibilty that it has to do with my project being written in typescript, whereas the electron example is in vanilla JS? And this is my webpack config:
Edit: Tried updating all electron dependencies to the ones I have in my project (which are newest versions) and your example still works, so can rule that out too. |
More updates: Made it work by removing webpack from my project |
Describe the bug
A clear and concise description of what the bug is.
as described in the title
After debugging into the code, I found that the wrong runtime was selected which caused an
undefined
env property. This bug was also mentioned in issue #336.https://github.com/xenova/transformers.js/blob/768a2e26d7f34746caa2b102f55dbd270c5d6f36/src/backends/onnx.js#L32
How to reproduce
Steps or a minimal working example to reproduce the behavior
Expected behavior
A clear and concise description of what you expected to happen.
Logs/screenshots
If applicable, add logs/screenshots to help explain your problem.
Environment
Additional context
Add any other context about the problem here.
I removed the runtime env check condition in my local and then the transformer worked fine.
The text was updated successfully, but these errors were encountered: