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

Cannot find module 'crypto' #291

Closed
Grep-Juub opened this issue Jun 23, 2016 · 2 comments
Closed

Cannot find module 'crypto' #291

Grep-Juub opened this issue Jun 23, 2016 · 2 comments
Labels

Comments

@Grep-Juub
Copy link

Hi guys,
I'm using Algolia since yesterday and I've got some good results when using it with one of my project wich is in React+Meteor, but I can't give the same magic tool to an older app of mine also in Meteor.
I use the lastest versions of meteor (1.3.3-1) and algoliasearch lastest update from yesterday 3.16.1.

And when I start my app, I've got this:
Cannot find module 'crypto'
More here

If you have any idea ?
Thanks

@vvo
Copy link
Contributor

vvo commented Jun 23, 2016

Hi, can you try:

import algoliasearch from 'algoliasearch/src/browser/builds/algoliasearchLite.js';

Relevant discussion: algolia/instantsearch#1024
Relevant discussion: meteor/meteor#6890

@vvo vvo added the question label Jun 23, 2016
@Grep-Juub
Copy link
Author

Grep-Juub commented Jun 23, 2016

Ok so I've managed to make it work, the problem was with Meteor I've put the import in file wich was in lib/ folder at the root of my project, so I made some Meteor method to use it only on the server side.

thanks for your help !

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

No branches or pull requests

2 participants