-
Notifications
You must be signed in to change notification settings - Fork 798
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
TypeError: Cannot read properties of undefined (reading 'wasm') #589
Comments
We encounter the same issue when attempting to compile via esbuild. |
Hi there - just to clarify, you are intentionally ignoring onnxruntime from both client-side and server-side, with the intention of only using the AutoTokenizer class? I suppose this is a valid use-case, and should be easy to resolve. I just want to make sure that you understand that you won't be able to use transformers.js for inference. |
Yes. I only wanted to use tokenizer.apply_chat_template function. to pass to the langchain model object. |
I see! That's a pretty reasonable feature request; I'll create a PR for this. |
@ayushsaklani Can you test out #621? If it works for your use-case, I'll merge and make a release for it. Thanks! |
System Info
"@xenova/transformers": "^2.15.0",
"onnxruntime-node": "^1.14.0",
MACOS
ARCOS(Chromium)
❯ npm --version
10.2.4
❯ node --version
v20.11.0
Next.js
Environment/Platform
Description
I am trying to use AutoTokenizer in my Nextjs app.
But getting below error. I have tried suggestion given in other issues but not sure what I am doing wrong.
Below is my next.config.mjs
I am calling transformers on server side
Reproduction
The text was updated successfully, but these errors were encountered: