Open kongvut opened 1 year ago
@MihaiValentin Any plans on merging this? If so, the lunr.hi.js
suffers from the same problem. Would be good to include in this PR as well
I did some testing and commenting out the .init()
method seems to produce an error on demo-browser-th.html
.
Locally, there seems to be no error with the test or the demo, but could it possibly be an error due to importing this library from another one?
What lunr version are you using? I'm using lunr-2.0.1.js and for me it works as expected
I'm also using lunr-2.0.1.js
as well. To provide further context, this PR suggests commenting out segmenter.init()
. However, when I tested this change using the demo-browser, it resulted in the error depicted in the attached screenshot above.
Regrettably, it's been approximately three months since I last utilized this library for search-related tasks, so I cannot recall precisely how that issue was triggered. Nonetheless, I opened an issue in the repository, which might offer a potential fix rather than the alterations proposed in this PR.
Uncaught TypeError: Cannot read properties of undefined (reading 'init')