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
react-dom/server
cannot be resolved with unstable_enablePackageExports
and condition browser
#1135
Comments
We'll need to check other tools to see how A |
There is no spec for this, but we've been building to the expectation that https://facebook.github.io/metro/docs/resolution/#resolution-algorithm Changing this behaviour in Metro (so that a Ideally, "exports": {
"./server.browser": "./server.browser.js",
+ "./server.browser.js": "./server.browser.js"
},
"browser": {
"./server.js": "./server.browser.js"
}, |
Is there ecosystem precedent for this? In the absence of a spec we ought to align, and the situation with |
This doesn't seem right tbh. A package author can't write their |
Hmm, fair point! This problem blocks stable Package Exports. I'm thinking:
(⬆️ Within Metro, it's really time to kill off |
(As reported by @EvanBacon)
Metro cannot resolve
react-dom/server
withunable_enablePackageExports
(and conditionbrowser
?), reporting:Conditions
package.json
The text was updated successfully, but these errors were encountered: