In Vite and some other bundlers, the crypto module isn’t polyfilled completely for browsers. This error means that createHmac is used in code in the algoliasearch client. The function is used for the generateSecuredApiKey server-only function.
In a production environment, this shouldn’t happen, so double-check that you:
Use algoliasearch/lite in browser environments
Set browser: true in module resolution