-
Notifications
You must be signed in to change notification settings - Fork 222
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
Problems using algoliasearch via npm on the client #292
Comments
Hi @nerdmed, I am failing at understanding exactly the issue you are having.
Do you mean everything works? If you are using algoliasearch on the frontend with meteorjs, untill meteorjs fixes a bug in their require algorithm (meteor/meteor#6890), you will have to: var algoliasearch = require('algoliasearch/src/browser/build/algoliasearch.js'); or var algoliasearch = require('algoliasearch/src/browser/build/algoliasearchLite.js'); |
@vvo thanks a lot for your support! There was only a typo. The following works.
Can you tell what explicitly is not working with the require algorithm as it seems not pretty clear in meteor/meteor#6890 ? Would be great to get some progress. |
They need to implement the full browser spec of package.json here: https://github.com/defunctzombie/package-browser-field-spec This is what is implemented by webpack and browserify. It allows you to map not only the "main" field to something browser specific but multiple files to their browser builds. |
Dear algolia devs ;) - I am getting the same issues that are fixed for in this issue for instantsearch.js on meteor when using the algolia client in a meteor enviroment.
I get the following error:
We haved transistioned all our packages to npm now without any issues. Any ideas what could cause this issue? Is this again something with the browser setting? This seems to work as expected now.
The text was updated successfully, but these errors were encountered: