codesandbox / codesandbox/codesandbox-client

wrong dependency-aware installation just appears on codesandbox

Open
#7,664 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
13.6k
Forks
2.4k
Avg merge
6d 19h
Merged PRs (30d)
2

Description

🐛 bug report

Preflight Checklist

  • I have read the Contributing Guidelines for this project.
  • I agree to follow the Code of Conduct that this project
    adheres to.
  • I have searched the issue tracker for an issue that matches the one I want
    to file, without success.

Description of the problem

codesanbox has an incorrect dependency lookup and install
image
The following error does not occur in local development or in other ide environments
The reason is that they installed the correct version of rc-util but accidentally installed the wrong version of rc-util in codesandbox

How has this issue affected you? What are you trying to accomplish?

All of the latest Atd Design on codesandbox projects that have been reproduced using codesandbox are not working properly.
This can be solved by manually installing rc-util@latest on the top level, but it shouldn't be.
This error should not occur in local and other ide

To Reproduce

just open https://codesandbox.io/s/an-niu-lei-xing-antd-5-5-1-forked-hls2gr?file=/demo.tsx
Or open the antd official website and use codesandbox in one of the component demos to quickly open

The same top-level dependencies will not be reported in the local development environment or in other ide
The reason is that codesandbox automatically recognizes that the wrong version of rc-util is installed in codesandbox

Link to sandbox: link (optional)

https://codesandbox.io/s/an-niu-lei-xing-antd-5-5-1-forked-hls2gr?file=/demo.tsx

Your Environment
Software Name/Version
Сodesandbox online
Browser chorme
Operating System macos

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked CodeSandbox reproduction and its demo.tsx file, then compare its dependency installation with the local or other IDE behavior described in the report. Trace why CodeSandbox installs the wrong rc-util version. Done means the reproduction no longer reports the error without manually adding rc-util@latest at the top level.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.