Closed agustingroh closed 10 months ago
The property Indexer
wasn't coming from FlexSearch, please give me a full value of getSearchConfig()
Hi @ts-thomas here is my configuration.
{
depth: 1,
bidirectional: 0,
resolution: 9,
minlength: 2,
stemmer: getDefaultStemmer(),
}.
Am I missing something?
What was the resolution here? Was this a valid bug that was fixed or a misconfiguration?
I am utilizing the Flexsearch library within an Electron app written in TypeScript. The app's versions are as follows:
The library works fine in the development environment. When the app is packaged the library stops working.
here is how I am importing the library
const Index = require('flexsearch'); const index = new Index(getSearchConfig());
Error
TypeError: p is not a constructor at i.Indexer.index
It seems like the Indexer constructor is not being recognized, resulting in this error.