Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how import typesense-docsearch in quasar #13

Open
dqli164 opened this issue Jul 17, 2023 · 1 comment
Open

how import typesense-docsearch in quasar #13

dqli164 opened this issue Jul 17, 2023 · 1 comment

Comments

@dqli164
Copy link

dqli164 commented Jul 17, 2023

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

  • OS: macOS

Looking forward to your replay.

@jasonbosco
Copy link
Member

jasonbosco commented Jul 17, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants