reactivesearch icon indicating copy to clipboard operation
reactivesearch copied to clipboard

SSR with ReactiveMaps not working

Open abathellier opened this issue 8 years ago • 1 comments

Issue Type: Bug

Platform: WEB

Description: I use nextjs and i followed your guide for server side rendering with reactiveSearch here but it doesn't work with GeoDistanceDropdown from '@appbaseio/reactivemaps'.

I get the following error when SSR : Error while running `getDataFromTree` ReferenceError: navigator is not defined

Reactivesearch version: "@appbaseio/reactivemaps": "^2.0.0-beta-02", "@appbaseio/reactivesearch": "^2.6.7",

Browser: All

abathellier avatar Jul 06 '18 13:07 abathellier

Put the autoLocation prop to false for server side rendering solve the problem

abathellier avatar Jul 06 '18 13:07 abathellier