react icon indicating copy to clipboard operation
react copied to clipboard

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

Open vctqs1 opened this issue 1 year ago • 3 comments

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 avatar Feb 18 '24 11:02 vctqs1

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!

github-actions[bot] avatar May 18 '24 14:05 github-actions[bot]

bump

vctqs1 avatar May 20 '24 09:05 vctqs1

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!

github-actions[bot] avatar Aug 18 '24 10:08 github-actions[bot]

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you!

github-actions[bot] avatar Aug 25 '24 11:08 github-actions[bot]