-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Unable to resolve "@adraffy/ens-normalize/xnf" in react native #3724
Comments
Does your version of RN support the |
|
The v5 branch of ethers uses a vended version of the Can you verify the |
okay tq, let me check |
yes I have verified it , version is 1.8.9 |
Ok. One more ask. Can you remove the |
okay sure |
@HEGADE did that work? |
Yes, that did work. Unfortunately, another issue is:
|
It seems like your bundler is ignoring the |
I had this same issue and could not resolve it. Removing /xnf made my program compile again but modifying library files is no solution (and it didn't work anyway) |
I’ll be using the non-xnf in the next patch release, and try using the I’m also considering a RN-specific package, which wraps all the necessary native libraries, and shims. If anyone would like to help out with that, that is more familiar with RN, that would be appreciated. :) |
sorry ,didn't work |
@ricmoo |
@ricmoo, I am happy to help and got some RN experience. What's the best way to connect? Email/Discord? |
This should be resolved in v6.0.4, try it out and let me know if there are any problems. The expansion was moved from using the ens-normalize Thanks! :) |
@ricmoo I'm facing the same error with @grabbou when I try to use v6 with RN 0.68 (Expo 45 / Metro). Any ideas on how to enable Metro to take into account the
|
@dtourassis are you using the latest version? It no longer uses the xnf exports field. |
I’m working on a RN-specific build, that takes all the shins into account. I’ll keep this issue updated with my status. There should be some way to configure your bundler though. I think, there should be some sort of webpack config. |
Thank you! Any ETA on the RN build? |
It likely won’t be anytime in the next few weeks. There is still a lot of other things to get polished first. And I have to learn a lot more about RN first. |
@dtourassis any luck? |
Running into the same issue as @dtourassis. On Expo SDK 48. ethers version is ~6.2.1.
@ricmoo Any updates? Could we re-open this issue while it's still being looked at? |
@manan19 have you updated to 6.3? |
@ricmoo Yup, same issue. How do I import the browser version only in my package.json? |
The |
That's correct. Although it seems fair to close this issue and open a new one for what I reported. It stems from the problem that the Metro bundler (using Expo Go) doesn't choose the *-browser.js files. |
I'm facing the same issue. Not sure why this was closed without filing a new issue as this library does not work with expo because it's not loading the browser files. |
|
Turns out it works with ethers 5 |
i have installed the ethers package , but when I'm trying to use it ,it is giving "Unable to resolve "@adraffy/ens-normalize/xnf" from "node_modules\ethers\lib.commonjs\hash\namehash.js" error .
ethers version- "^6.0.0"
The text was updated successfully, but these errors were encountered: