You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It shows the following error when making “insights:true” in createAutocomplete:
⨯ node_modules/@algolia/autocomplete-plugin-algolia-insights/dist/umd/index.production.js (2:4254) @ h
⨯ TypeError: Cannot read properties of undefined (reading ‘version’)
at eval (./src/app/test/autocomplete.tsx:29:161)
at Autocomplete (./src/app/test/autocomplete.tsx:29:71)
I can confirm there seems to be an issue with insights when enabled during server-side rendering environment.
While we work on fixing this problem in the library, you could try a workaround by enabling insights in browser environment only:
I can confirm there seems to be an issue with insights when enabled during server-side rendering environment. While we work on fixing this problem in the library, you could try a workaround by enabling insights in browser environment only:
Description
It shows the following error when making “insights:true” in createAutocomplete:
my package.json
autocomplete.tsx
Reproduction
I just built a test project for integrating autocomplete with nextJS, like this:
Demo →
Run the Repository →:
npm run dev
go to localhost:3000/test
The text was updated successfully, but these errors were encountered: