codesandbox / codesandbox/codesandbox-client

Carbon Design System sandboxes do not work

Open
#6,684 7 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

Sandboxes using @carbon/react error out or do not get past "transpiling modules".

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

We ask that all bug reports submitted to Carbon have a codesandbox reproduction of the issue. We additionally use codesandbox a ton for examples and help/support. It's put a strain on our team trying to field support requests recently.

To Reproduce

We've had a hard time nailing down why this is happening. Unclear what from our package might be causing it. The sandboxes simply do not finish transpiling:

https://codesandbox.io/s/flamboyant-phoebe-oezq0f?file=/index.js

Additionally the example/template hosted in our repo gives an error:

Could not fetch dependencies, please try again in a couple seconds: Cannot read properties of null (reading 'match')

https://codesandbox.io/s/github/carbon-design-system/carbon/tree/main/examples/codesandbox

It might be related to https://github.com/codesandbox/codesandbox-client/issues/6443#issuecomment-1115103020 or https://github.com/codesandbox/codesandbox-client/issues/6607#issuecomment-1098993096, but am unsure.

Your Environment
Software Name/Version
Сodesandbox 060861cf8
Browser Chrome
Operating System MacOS 12.3.1

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 the examples/codesandbox template, especially index.js, and trace where dependency fetching or module transpiling stops. Compare the @carbon/react sandbox behavior with the reported null.match error and the related client issues. Done means both the reproduction and repository example load successfully without hanging or dependency-fetch errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
build-system, devtools
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.