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
65 stars 14 forks source link

Build error: Docusaurus server-side rendering could not render static page with path /search (ReferenceError: window is not defined) #21

Closed majidsadr closed 2 years ago

majidsadr commented 2 years ago

Description

Hi, When I use to build my docusaurus project with typesense included, I get this error:

image

Actual Behavior

The command yarn build fails after running with the error described above.

Metadata

Typsense Version: 0.5.2

Docusaurus Version: 2.0.0-rc.1

jasonbosco commented 2 years ago

@MajidSadrr Thank you for reporting this. I've pushed out a fix in v0.5.3 of docusaurus-theme-search-typesense. Could you try now?

majidsadr commented 2 years ago

@jasonbosco Thanks! fixed. :)