-
-
Notifications
You must be signed in to change notification settings - Fork 259
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
Cannot import from @orama/orama/components #657
Comments
@came we're on it |
quick question, are you using Orama in TypeScript via ESM or via CJS? |
Thank you 👍 I'm importing Orama as ESM |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I try to create my own custom Index component as described here: https://docs.oramasearch.com/open-source/internals/components#index. Therefore, I need BM25, index and some other internal types / function. However, I cannot import them as described with
Look like it is just not exported anymore :/
BR, Carsten
To Reproduce
Just try to import an you will get the ts error:
Cannot find module '@orama/orama/components' or its corresponding type declarations.ts(2307)
⚠ Error (TS2307) |
Cannot find module
or its corresponding type declarations.
Expected behavior
I would expect to import from '@orama/orama/components'
Environment Info
Affected areas
Initialization
Additional context
I can import the defaultIndex like the following, but I cannot get types like this. e.g. Index
I looked into the source code, but I could not see an error.
The text was updated successfully, but these errors were encountered: