Skip to content
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

Request: Define to exports cjs/* files in package.json #28371

Open
vctqs1 opened this issue Feb 18, 2024 · 0 comments · May be fixed by #28944
Open

Request: Define to exports cjs/* files in package.json #28371

vctqs1 opened this issue Feb 18, 2024 · 0 comments · May be fixed by #28944
Labels
Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug

Comments

@vctqs1
Copy link

vctqs1 commented Feb 18, 2024

React version: 18.2.0
I am encountering an issue when attempting to use React version 18.2.0 to build CJS to ESM support in browsers. The problem is related to the cjs folder not being defined in the "exports" field of the React package.json file.
Please check out this message error
https://github.com/esm-bundle/react/actions/runs/7909812813/job/21591452688?pr=303#step:6:16

[!] Error: Package subpath './cjs/react.development.js' is not defined by "exports" in /Users/vctqs1/Documents/developer/forked/react/node_modules/react/package.json

While cjs folder is not exports

The current behavior

  • cjs folder is not exports

The expected behavior

  • cjs folder is able exports in package.json
@vctqs1 vctqs1 added the Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug label Feb 18, 2024
@vctqs1 vctqs1 changed the title Request: Able to import cjs/* files in package.json Request: Define to exports cjs/* files in package.json Feb 18, 2024
@vctqs1 vctqs1 linked a pull request Apr 29, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug
Projects
None yet
1 participant