typesense / docusaurus-theme-search-typesense

A fork of the awesome @docusaurus/theme-search-algolia library customized to work with Typesense
https://typesense.org/docs/guide/docsearch.html
MIT License
67 stars 15 forks source link

Page crashed: regeneratorRuntime is not defined #15

Closed majidsadr closed 2 years ago

majidsadr commented 2 years ago

Description

I'm using typesense in my docusaurus docs. I couldn't figure out why this error happened, but my search bar is not working and I have this error: image

Any ideas about the problem and how to fix that?

jasonbosco commented 2 years ago

Could you try installing @babel/runtime? It's usually not needed with docusaurus, so I wonder why you're seeing this error...

jmccann commented 2 years ago

I just updated to docusaurus beta.20 and started seeing this too

jmccann commented 2 years ago

I am running 2.0.0-beta.17 with no issues (using 0.4.0-2).

But if I:

rm yarn.lock
yarn install

And then try again it breaks. This is while being pinned to 2.0.0-beta.17. So seems some other dep updates that causes this to break.

I also tried using my currently yarn.lock and updating to 2.0.0-beta.18 and also ran into this issue.

majidsadr commented 2 years ago

Thanks @jmccann, I've downgraded docusaurus version to 2.0.0-beta.17 and it fixed.

jmccann commented 2 years ago

I don't think that is the fix ... probably need to fix this for beta.18+ as well ... so may want to re-open the issue.

jasonbosco commented 2 years ago

Could you check if you see the same issue with docusaurus beta.21 and 0.4.0 of docusaurus-theme-search-typesense?

jmccann commented 2 years ago

Seems better so far with beta.21 and 0.4.0 👍

majidsadr commented 2 years ago

Hey, I'm getting this issue again after upgrading docusaurus to v2.0.0-rc.1 and typesense to v0.5.0. Am I doing sth wrong?

jasonbosco commented 2 years ago

@MajidSadrr Thank you for catching that. This was a bug I've fixed in v0.5.2 of docusaurus-theme-search-typesense. Could you try that version out?

majidsadr commented 2 years ago

@jasonbosco Solved. Thank you so much!