Skip to content
This repository was archived by the owner on Dec 16, 2022. It is now read-only.

Conversation

@tkrugg
Copy link
Contributor

@tkrugg tkrugg commented Sep 20, 2021

This works around a problem you can encounter on codeandbox.
Could using client-search instead of algoliasearch/lite better solve this problem? @Haroenv @francoischalifour

lite_1.default is not a function

Screenshot at Sep 20 17-16-36

This works around a problem you can encounter on codeandbox
```
lite_1.default is not a function
```
Copy link
Contributor

@francoischalifour francoischalifour left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that's a better solution than relying on @algolia/client-search, where we'd likely loose SSR compatibility. The lite client is made for the web and has other optimizations.

Copy link
Member

@sarahdayan sarahdayan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with @francoischalifour, we want to keep the lite client. This is a build problem, so it's best solved at build level.

@tkrugg tkrugg merged commit 502e776 into master Sep 21, 2021
@tkrugg
Copy link
Contributor Author

tkrugg commented Sep 21, 2021

Thank you both!

@tkrugg tkrugg deleted the enable-esmodule-interop branch September 21, 2021 11:58
aymeric-giraudet pushed a commit to algolia/instantsearch that referenced this pull request Dec 14, 2022
…-app#527)

* fix(Angular IS): enable esModuleInterop

This works around a problem you can encounter on codeandbox
```
lite_1.default is not a function
```

* updated snapshot
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants