Skip to content

Unnecessary package.json required for use with Deno #13743

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

Open
markmals opened this issue Jun 4, 2025 · 1 comment
Open

Unnecessary package.json required for use with Deno #13743

markmals opened this issue Jun 4, 2025 · 1 comment
Labels

Comments

@markmals
Copy link

markmals commented Jun 4, 2025

I'm using React Router as a…

framework

Reproduction

Delete the package.json file from this template and run deno task dev: https://github.com/remix-run/react-router-templates/tree/main/deno

System Info

System:
    OS: macOS 15.5
    CPU: (10) arm64 Apple M4
    Memory: 111.78 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.16.0 - ~/.volta/tools/image/node/22.16.0/bin/node
    npm: 10.9.2 - ~/.volta/tools/image/node/22.16.0/bin/npm
    pnpm: 10.11.0 - ~/.volta/bin/pnpm
    bun: 1.2.15 - /opt/homebrew/bin/bun
  Browsers:
    Chrome: 137.0.7151.68
    Safari: 18.5

Used Package Manager

npm

Expected Behavior

  • React Router should work in Deno environments without requiring a package.json file.
  • Since Deno does not use package.json for dependency resolution, the code path that tries to load or reference package.json should be skipped when running under Deno (or replaced by a Deno-friendly entry point).

Actual Behavior

  • Any calls to the react-router binary fail if no package.json is found.
  • Users are forced to add an inert package.json with a comment field merely to satisfy @react-router/dev's import logic, which doesn’t make sense for Deno.
@markmals markmals added the bug label Jun 4, 2025
@markmals
Copy link
Author

markmals commented Jun 4, 2025

Related PR: #13744

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant