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

Bug: react-server-dom-esm package is empty #27197

Open
nickserv opened this issue Aug 6, 2023 · 8 comments
Open

Bug: react-server-dom-esm package is empty #27197

nickserv opened this issue Aug 6, 2023 · 8 comments
Labels
Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug

Comments

@nickserv
Copy link

nickserv commented Aug 6, 2023

I thought it would be helpful to use react-server-dom-esm for an RSC test integration, but the package appears to be empty for parking purposes.

Please consider publishing it as I'd prefer to use official implementations of servers to encourage testing practices that are supported by React. I'm also unable to build from source, it appears as the version of this package on main isn't in working condition outside of some internal fixtures yet.

Note: I originally thought this issue also applied to react-server-dom-webpack, but later realized I was installing the wrong channel, and that only the latest channel was empty. If there are resources to document this package, please clarify channel usage in the installation instructions.

React version: 18.3 (canary)

Steps To Reproduce

  1. Install react-server-dom-esm
  2. import "react-server-dom-esm/server";
  3. Run with node --conditions react-server

Alternative you can look up the code on npm, which has no JavaScript files.

The current behavior

Package fails to resolve modules because they're missing.

The expected behavior

Package contains code that can be imported and run.

@nickserv nickserv added the Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug label Aug 6, 2023
@keithbrewer1337
Copy link

having the same issue with react-server-dom-webpack. Looks like 2 days ago (8/4) a publish was made by @sebmarkbage for a version 0.0.1 which shows up as latest version to npm and only has an empty index.js and a package.json file in it.
https://www.npmjs.com/package/react-server-dom-webpack?activeTab=code

Now I'm getting this error while running build in a nextjs app. This didn't happen before.

Warning Babel parse has failed: This experimental syntax requires enabling one of the following parser plugin(s): "flow", "typescript". (13:7)

@nickserv
Copy link
Author

nickserv commented Aug 7, 2023

Not sure what the source of that error is specifically, but Next's app router already supports RSCs, so you don't need this package unless you're integrating a supplemental tool (like a test framework or story generator).

@nickserv nickserv changed the title Bug: React Server DOM packages are empty Bug: react-server-dom-esm package is empty Aug 17, 2023
@nickserv
Copy link
Author

I later realized react-server-dom-webpack has working releases in its experimental and canary channels. If you're using react-server-dom-webpack, install react-server-dom-webpack@canary. The issue still remains for react-server-dom-esm.

@dai-shi dai-shi mentioned this issue Dec 4, 2023
75 tasks
@dai-shi
Copy link
Contributor

dai-shi commented Feb 9, 2024

@sebmarkbage Can you confirm if it's intentional or a misconfiguration? In #26889, you said it's just a proof-of-concept. So, I wonder if that's the reason.

@himself65
Copy link
Contributor

Update: https://twitter.com/sebmarkbage/status/1772266389060907472

@nickserv
Copy link
Author

Thanks, though I'm still keeping this open to track until there is a non-empty release.

Copy link

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 github-actions bot added the Resolution: Stale Automatically closed due to inactivity label Jun 26, 2024
@himself65
Copy link
Contributor

bump

I think if react doesn't release esm version, react should delete that package

@github-actions github-actions bot removed the Resolution: Stale Automatically closed due to inactivity label Jun 26, 2024
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
Development

No branches or pull requests

4 participants