-
Notifications
You must be signed in to change notification settings - Fork 386
ERROR: No matching export in "node-modules-polyfills:crypto" for import "createHmac" #3547
Comments
ionic-team/rollup-plugin-node-polyfills#20 Might be linked to this. Could there be a possibility to circumvent this issue? The @esbuild-plugins folder with the file in src called Polyfills.ts does say:
|
What's odd is that it seems to resolve the node version of algoliasearch, even though it should have resolved to the browser version according to your settings. For direct workarounds, you could import Do you have a reproduction for this somewhere runnable? |
I went back and made a code sandbox... I am not sure how to run it, but the files here match a quick remix app I made with Cloudflare pages. The barebones stuff with some quick Algolia stuff added in. https://codesandbox.io/s/nostalgic-snowflake-601sbe I'm getting the error I mentioned when I try to run it with Also, not sure about running |
Hi @vonkoff, I updated your sandbox with a config that makes it runnable in Codesandbox and adjusted the |
This worked! Closing the issue down and I'll make sure to post this as a solution in the other places like Discord if anyone else has this issue in the future. |
🐛 Bug description
This issue comes about when trying to run remix through Cloudflare pages.
Getting this error and am not sure what could be the issue. Followed along with this github issue remix-run/remix#3120 and saw that setting serverModuleFormat to ESM and serverPlatform to the browser should fix this.
set my remix.config.js to the following and still got the same error when it wasn't like that.
I know this is more an issue pertaining with Algolia as opposed to Remix. But, I wonder if someone would possibly know how to include the export of
"createHmac"
to make Algolia work?🔍 Bug reproduction
Steps to reproduce the behavior:
npx create-remix@latest
2.Environment
The text was updated successfully, but these errors were encountered: