Build error: 'Document' is not exported from 'flexsearch'
Closed this issue · 3 comments
tarjelavik commented
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.
mathewjordan commented
Thanks @tarjelavik -- I'll try to mirror in Nextra and see what's going on here...
mathewjordan commented
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?
tarjelavik commented
No worries :-). Yes, i can confirm that 2.7.3 works and does not break the Nextra build.
Thank you for the quick fix!