-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
warning: Attempted to import the module #76
Comments
can you show the exact import of noble that you are using? |
import { hmac } from "@noble/hashes/hmac";
import { sha512 } from "@noble/hashes/sha512";
import { randomBytes } from "@noble/hashes/utils"; |
it's just a warning? is everything working? |
Yeah, it works. Maybe there's something wrong with Metro. I would wait for the official release - https://metrobundler.dev/docs/package-exports |
i don't think we can do anything here. Crypto is declared in exports. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When noble-hashes are used with React Native
warning: Attempted to import the module "/Users/danielsteigerwald/dev/evolu/node_modules/@noble/hashes/crypto.js" which is not listed in the "exports" of "/Users/danielsteigerwald/dev/evolu/node_modules/@noble/hashes". Falling back to file-based resolution. Consider updating the call site or asking the package maintainer(s) to expose this API.
The text was updated successfully, but these errors were encountered: