typesense / typesense-docsearch.js

A fork of Algolia's awesome DocSearch.js, customized to use data from Typesense.
MIT License
29 stars 11 forks source link

how import typesense-docsearch in quasar #13

Open dqli164 opened 1 year ago

dqli164 commented 1 year ago

Description

I need to use typesense-docsearch in quasar, but when i import docsearch like this

import { docsearch } from 'typesense-docsearch.js/dist/esm/docsearch'

but there always report: Module not found: Can't resolve imported dependency "typesense-docsearch.js/dist/esm/docsearch"

Live reproduction: thers is a demo you can reproduce this issue

Environment

Looking forward to your replay.

jasonbosco commented 1 year ago

Could you try changing the import to:

import { docsearch } from 'typesense-docsearch.js/dist/esm'

If that also doesn't work, could you try replicating this issue on a small standalone project that just uses vanilla JS to see if you can replicate the issue there?