Skip to content

No revealing client-server entries in the RR/CF template #13750

Open
@abelsj60

Description

@abelsj60

I'm using React Router as a...

framework

Reproduction

N/A (Please see discussion)

System Info

System:
    OS: macOS 15.2
    CPU: (10) arm64 Apple M2 Pro
    Memory: 628.64 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 23.9.0 - /opt/homebrew/bin/node
    Yarn: 1.22.21 - /opt/homebrew/bin/yarn
    npm: 10.9.2 - /opt/homebrew/bin/npm
    pnpm: 8.15.1 - /opt/homebrew/bin/pnpm
  Browsers:
    Brave Browser: 137.1.79.118
    Edge: 133.0.3065.69
    Safari: 18.2
    Safari Technology Preview: 18.2
  npmPackages:
    @react-router/dev: ^7.5.3 => 7.6.2
    react-router: ^7.5.3 => 7.6.2
    vite: ^6.3.3 => 6.3.5

Used Package Manager

npm

Expected Behavior

I expected to use npx react-router reveal (as suggested by @brookslybrand) to expose entry.server.tsx and entry.client.tsx in a project scaffolded with the RR-Cloudflare template:

npx create-react-router@latest --template remix-run/react-router-templates/cloudflare
src: https://github.com/remix-run/react-router-templates/tree/main/cloudflare

Actual Behavior

The results were odd.

First, the initial template comes with entry.server.tsx exposed. I didn't run "reveal."
Second, when I did run npx react-router reveal, I got two successive red error messages in the terminal:

No default server entry detected.
No default server entry detected.

I don't know what this means or whose responsibility these files would be. The template's I'd assume, but it's not certain. In addition, I notice that no mention is made of the client entry (entry.client.tsx). Finally, the client entry file wasn't revealed to me. The server entry file wasn't revealed, either. It was already present.

@brookslybrand asked me to file a bug report on Discord:

Hmm, okay, yeah, that's goofy. It should be working. If you want to open up an issue on react-router that would be helpful 🙏

src: https://discord.com/channels/770287896669978684/770287896669978687/1379123389473620181

I'd be happy to hear it's user error and that this issue can be satisfactorily closed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions