Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default export is not a function since 4.23.1 #1515

Closed
peeterkask opened this issue Mar 27, 2024 · 1 comment · Fixed by #1514
Closed

Default export is not a function since 4.23.1 #1515

peeterkask opened this issue Mar 27, 2024 · 1 comment · Fixed by #1514

Comments

@peeterkask
Copy link

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
Copy link
Member

dhayab commented Mar 27, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants