Closed ndlonghi closed 2 years ago
Hi. Interesting. I am currently on vacation, so I do not have time to look into this now, but will as soon as I am back. Thanks for the issue.
me too.
Should be solved in version 2.4.2. Let me know if there is any other issues.
Thanks a lot @bjarneo ! Really helpful and really fast solution!
BTW: version 2.4.2 works perfect, but in latest (2.4.8) it doesn't work, I get the same error.
@ndlonghi No problem. Lock it to that version for now, and I will look more into it. Tried to quick fix it late night, so kind of did not make it work as expected cross environments. Reopening the issue!
With 2.4.8, it gives me a warning like this:
warn Package extract-domain has been ignored because it contains invalid configuration. Reason: Package subpath './package.json' is not defined by "exports"
2.4.2 is ok.
Hi @bjarneo, I don't think this fix is needed anymore since react-native fixed this issue in the RN CLI (https://github.com/facebook/react-native/blob/main/CHANGELOG.md#v0692). Thanks for all your support and sorry for the inconveniencies.
Hi @ndlonghi, great to hear! Then I do not have to look more into this.
If it happens to be anything else, please let me know :)
I'm using this library in a React Native project, but when upgrading to
react-native: 0.69.1
and trying to compile android app (npx react-native run-android
) I get the following error:I could fix it by modifying the
node_modules/extract-domain/package.json
and replacing theexports
property with this:But I didn't want to create a PR with this change because I guess I'm missing some things here.