codesandbox / codesandbox/codesandbox-client

Cannot create sandbox from the team page

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

💥 Crash Report

Trying to create a new snapshot

Clicking on Create Snapshot button crashes the app

image image

The template object looks like some corrupted data that applicable only to our Knowde team:

{
    "id": "0fd3a7fd-17b7-480c-a5de-d6da4faea4fe",
    "color": "#61DAFB",
    "iconUrl": "github",
    "published": true,
    "sandbox": null,
    "__typename": "Template"
}
Link to sandbox: [link]() (optional)
Crash Details
Environment
Browser Version Operating System CodeSandbox Version
chrome 102.0.0 OS X 10.15.7 2b5fe67e0

Route:
https://codesandbox.io/dashboard/home?workspace=f3c40a7c-467a-4f5f-bd6e-3b1102d4e048

Error Code:
c628daeda0984d4dbe62657ef9878157

Error Message
TypeError: Cannot destructure property 'alias' of 'object null' as it is null.
TypeError: Cannot destructure property 'alias' of 'object null' as it is null.
  at t.getSandboxName (https://codesandbox.io/static/js/default~app~embed.b0f63c6e2.chunk.js:378:343)
  at https://codesandbox.io/static/js/app.71c35c901.js:66:377569
  at Array.map (<anonymous>)
  at https://codesandbox.io/static/js/app.71c35c901.js:66:377220
  at Array.map (<anonymous>)
  at $e (https://codesandbox.io/static/js/app.71c35c901.js:66:376956)
  at ua (https://codesandbox.io/static/js/common.d909eae2e.chunk.js:1:1789558)
  at xs (https://codesandbox.io/static/js/common.d909eae2e.chunk.js:1:1834821)
  at ml (https://codesandbox.io/static/js/common.d909eae2e.chunk.js:1:1820397)
  at hl (https://codesandbox.io/static/js/common.d909eae2e.chunk.js:1:1820322)
  at il (https://codesandbox.io/static/js/common.d909eae2e.chunk.js:1:1817650)
  at https://codesandbox.io/static/js/common.d909eae2e.chunk.js:1:1775833
  at t.unstable_runWithPriority (https://codesandbox.io/static/js/common.d909eae2e.chunk.js:1:1851169)
  at qo (https://codesandbox.io/static/js/common.d909eae2e.chunk.js:1:1775542)
  at Xo (https://codesandbox.io/static/js/common.d909eae2e.chunk.js:1:1775778)
  at Yo (https://codesandbox.io/static/js/common.d909eae2e.chunk.js:1:1775713)
  at se (https://codesandbox.io/static/js/common.d909eae2e.chunk.js:1:1844921)
  at Sn (https://codesandbox.io/static/js/common.d909eae2e.chunk.js:1:1759339)

  in $e
  in t
  in Ye
  in Je
  in div
  in span
  in styled.span
  in span
  in styled.span
  in div
  in n
  in Styled(n)
  in Unknown
  in st
  in div
  in ForwardRef(p)
  in ForwardRef(p)
  in elements__TabContent
  in div
  in elements__Container
  in De
  in Unknown
  in $n
  in div
  in div
  in div
  in div
  in t
  in t
  in Modal___StyledModal
  in n
  in De
  in Unknown
  in Y
  in n
  in withRouter(n)
  in div
  in elements__Container
  in Unknown
  in withRouter()
  in t
  in Unknown
  in De
  in c
  in t

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

Reproduce the crash from the team dashboard route and inspect the stack trace around getSandboxName, where the null template data is surfaced. Trace that call back to its source and verify the affected team-page snapshot flow. Done means clicking Create Snapshot no longer crashes when a template has a null sandbox.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
40/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.