-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
REPL throws on requiring a package with exports
field
#34521
Comments
1 task
For the record, this is also reproducible if the |
Look like this was fixed by #32261. |
I can confirm it’s fixed with |
Can confirm that it's fixed in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What steps will reproduce the bug?
(Credits to @proteriax)
How often does it reproduce? Is there a required condition?
Must reproduce
What is the expected behavior?
It should require the module.
What do you see instead?
One can verify the package is working properly:
REPL does not throw if you remove
exports
frompackage.json
, though this is unfavored.Additional information
Context: babel/babel#11878
Maybe related: #32935 But IMO adding
exports
should not break the ability of requiring a commonjs module in REPL./cc @guybedford
The text was updated successfully, but these errors were encountered: