-
Notifications
You must be signed in to change notification settings - Fork 785
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
error TS2510: Base constructors must all have the same return type. #437
Comments
Hey @devfacet, thank you for the issue! I have a feeling this is because ONNXRuntime is exporting node_modules/onnxruntime-common/dist/lib/tensor.d.ts /**
* Represent multi-dimensional arrays to feed to or fetch from model inferencing.
*/
export interface Tensor extends TypedTensorBase<Tensor.Type>, TypedTensorUtils<Tensor.Type> {
} And: export declare const Tensor: TensorConstructor; As long as there is no fix, you can always use: |
just a note it's happening inside https://github.com/run-llama/LlamaIndexTS as well, ran into it today |
* Do not extend from ONNX tensor (fix #437) * Fix typing issues * Typing improvements * Apply suggestions * Update tensor import type
🎉 Thank you, I can't wait for the next release. |
System Info
Node: v20.9.0
tsc: The TypeScript Compiler - Version 5.2.2
Environment/Platform
Description
I've been building my app with
tsc
for quite a while. Today, I tried to upgrade@xenova/transformers
from2.7.0
to2.10.1
but if tailed due to the error below.2.8.0
works fine, but it doesn't work2.9.0
and afterward.Reproduction
The text was updated successfully, but these errors were encountered: