samvera-labs/clover-iiif

Build error: 'Document' is not exported from 'flexsearch'

Closed this issue · 3 comments

Hi, tried the the version 2.7.1 and 2.7.2 in a Nextra app and got this error when building:

./node_modules/@samvera/clover-iiif/dist/scroll/index.mjs
Attempted import error: 'Document' is not exported from 'flexsearch' (imported as 'Q').

Import trace for requested module:
./node_modules/@samvera/clover-iiif/dist/scroll/index.mjs
./node_modules/@samvera/clover-iiif/dist/index.mjs
./components/work.tsx

The components is basically the demo component.

Thanks @tarjelavik -- I'll try to mirror in Nextra and see what's going on here...

Apologies for this @tarjelavik and thank you for submitting this. This should now be resolved by 2.7.3. Can you take a look and confirm on your end?

No worries :-). Yes, i can confirm that 2.7.3 works and does not break the Nextra build.

Thank you for the quick fix!