smapiot/pidoc

Flexsearch Broken

Closed this issue · 0 comments

With latest pidoc/core 0.18.1 I am getting a type error with flexsearch:

ERROR in ./src/codegen/search.codegen
Module build failed (from ../../parcel-codegen-loader/lib/index.js):
TypeError: FlexSearch is not a constructor
    at createSearch (<projectdir>\node_modules\@pidoc\core\src\tools\search.js:8:17)

Pinning flexsearch to 0.27.1 (as suggested in other posts) did not help.
nextapps-de/flexsearch#341

Originally posted by @sbley in #13 (comment)