-
-
Notifications
You must be signed in to change notification settings - Fork 493
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
How to properly use worker in the browser mode? #251
Comments
Having exactly the same issue. |
This issue seems to be this line: https://github.com/nextapps-de/flexsearch/blob/master/src/worker/index.js#L43 I'm running in Electron, and this is incorrectly identifying the process as a node process. It's not. |
@ts-thomas Could this line use the following check instead?
In an electron window with |
Thanks for this hint. I need to solve the merge conflict before I can merge. |
Is this a solved issue?? Cause I've been having the same issue and I'm using version 0.7.21 |
This fix is included in v0.7.23 |
Hello,
I'm trying to use this module in the browser. I'm using the following code according to the doc:
When I try the search, myWorker.search('some test'); I get the following error:
"TypeError: Cannot read property 'postMessage' of undefined
at eval (webpack://@somepath./node_modules/.pnpm/[email protected]/node_modules/flexsearch/dist/flexsearch.bundle.js?:23:229)"
I'm using Webpack to build my package, it seems like I missed something obvious but I cannot figure out what.
The text was updated successfully, but these errors were encountered: