Skip to content
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

ReferenceError: SharedArrayBuffer is not defined #858

Closed
isaachinman opened this issue Dec 11, 2024 · 2 comments
Closed

ReferenceError: SharedArrayBuffer is not defined #858

isaachinman opened this issue Dec 11, 2024 · 2 comments

Comments

@isaachinman
Copy link

Describe the bug

I am trying to get up and running with @orama/orama with an extremely basic use case.

I need to persist and hydrate values, so I am interested in using insertMultiple. When I use an insert loop, it works fine, but I get the warning:

Orama's insert operation is synchronous. Please avoid inserting a large number of document in a single operation in order not to block the main thread or, in alternative, please use insertMultiple.

When I then try to use insertMultiple, I get an actual error:

ReferenceError: SharedArrayBuffer is not defined

I see no mention of anything related to this in any issues or documentation.

To Reproduce

insertMultiple([])

Expected behavior

As insert works out of the box, I would also expect insertMultiple to work.

Environment Info

Node v20.10.0
@orama/orama v3.0.3
Vite

Affected areas

Data Insertion

Additional context

Chrome Version 131.0.6778.109 (Official Build) (arm64)

@micheleriva
Copy link
Member

I spotted the error. Will fix asap.

micheleriva added a commit that referenced this issue Dec 11, 2024
@micheleriva
Copy link
Member

micheleriva commented Dec 11, 2024

Fixed in #859

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants