algolia / algoliasearch-client-javascript

⚡️ A fully-featured and blazing-fast JavaScript API client to interact with Algolia.
https://www.algolia.com/doc/api-client/javascript/getting-started/
MIT License
1.33k stars 222 forks source link

Default export is not a function since `4.23.1` #1515

Closed peeterkask closed 6 months ago

peeterkask commented 6 months ago

Hi

We are getting an error since upgrading to @algolia/recommend version 4.23.1. Previous version 4.23.0 seems to be ok.

Very basic client initialization fails:

import algoliarecommend from '@algolia/recommend';

const client = algoliarecommend(
  ...,
  ...
);

with error:

const client = algoliarecommend(
                               ^
TypeError: (0 , recommend_1.default) is not a function
dhayab commented 6 months ago

Thanks for your report @peeterkask. @algolia/recommend@4.23.2 has just been released with a fix for this issue.