codesandbox / codesandbox/codesandbox-client

Crash When Trying to Create New Sandbox

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

What were you trying to accomplish when the crash occurred?

Trying to create a new sandbox. Clicked on the button in upper right corner.

Crash Details
Environment
Browser Version Operating System CodeSandbox Version
firefox 100.0.0 OS X 10.15 e334d85ce

Route:
https://codesandbox.io/dashboard/home?workspace=25853048-a7ba-457d-b74f-b26dcc8521ea

Error Message
TypeError: (destructured parameter) is null
../common/lib/utils/get-sandbox-name.js/t.getSandboxName@https://codesandbox.io/static/js/default~app~embed.b3fcd3f15.chunk.js:378:335
./src/app/components/CreateNewSandbox/CreateSandbox/CreateSandbox.tsx/$e/</<@https://codesandbox.io/static/js/app.8c224dd43.js:79:376055
./src/app/components/CreateNewSandbox/CreateSandbox/CreateSandbox.tsx/$e/<@https://codesandbox.io/static/js/app.8c224dd43.js:79:375706
$e@https://codesandbox.io/static/js/app.8c224dd43.js:79:375442
ua@https://codesandbox.io/static/js/common.eff6be823.chunk.js:1:1789558
xs@https://codesandbox.io/static/js/common.eff6be823.chunk.js:1:1834821
ml@https://codesandbox.io/static/js/common.eff6be823.chunk.js:1:1820399
hl@https://codesandbox.io/static/js/common.eff6be823.chunk.js:1:1820322
il@https://codesandbox.io/static/js/common.eff6be823.chunk.js:1:1817650
../../node_modules/react-dom/cjs/react-dom.production.min.js/Xo/<@https://codesandbox.io/static/js/common.eff6be823.chunk.js:1:1775833
../../node_modules/react-dom/node_modules/scheduler/cjs/scheduler.production.min.js/t.unstable_runWithPriority@https://codesandbox.io/static/js/common.eff6be823.chunk.js:1:1851169
qo@https://codesandbox.io/static/js/common.eff6be823.chunk.js:1:1775542
Xo@https://codesandbox.io/static/js/common.eff6be823.chunk.js:1:1775780
Yo@https://codesandbox.io/static/js/common.eff6be823.chunk.js:1:1775713
se@https://codesandbox.io/static/js/common.eff6be823.chunk.js:1:1844921
Sn@https://codesandbox.io/static/js/common.eff6be823.chunk.js:1:1759341


  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

Start with src/app/components/CreateNewSandbox/CreateSandbox/CreateSandbox.tsx and common/lib/utils/get-sandbox-name.js, using the reported TypeError and Firefox reproduction while creating a sandbox from the dashboard. Trace the null destructured parameter and reproduce the crash; done means creating a new sandbox no longer crashes in the reported flow.

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
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.