codesandbox / codesandbox/codesandbox-client
Cannot create Github repo from a Sandbox `Not able to push sandbox to a remote repository`
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
Signin via Github.
I create a project in CodeSandbox then try to create a repo on Github on my personal account.
The UI shows this error "Not able to push sandbox to a remote repository"
I debug the error on the browser console and get the following error.
ConvertToRepositoryForm.tsx:140 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'owner')
at ConvertToRepositoryForm.tsx:140:28
at s (runtime.js:63:40)
at Generator._invoke (runtime.js:294:22)
at Generator.next (runtime.js:119:21)
at r (asyncToGenerator.js:3:20)
at s (asyncToGenerator.js:25:9)
(anonymous) @ ConvertToRepositoryForm.tsx:140
s @ runtime.js:63
(anonymous) @ runtime.js:294
(anonymous) @ runtime.js:119
r @ asyncToGenerator.js:3
s @ asyncToGenerator.js:25
Promise.then (async)
r @ asyncToGenerator.js:13
s @ asyncToGenerator.js:25
(anonymous) @ asyncToGenerator.js:32
(anonymous) @ asyncToGenerator.js:21
(anonymous) @ ConvertToRepositoryForm.tsx:126
We @ react-dom.production.min.js:52
Ke @ react-dom.production.min.js:52
(anonymous) @ react-dom.production.min.js:53
Er @ react-dom.production.min.js:100
Pr @ react-dom.production.min.js:101
(anonymous) @ react-dom.production.min.js:113
je @ react-dom.production.min.js:292
(anonymous) @ react-dom.production.min.js:50
Mr @ react-dom.production.min.js:105
Jt @ react-dom.production.min.js:75
Zt @ react-dom.production.min.js:74
t.unstable_runWithPriority @ scheduler.production.min.js:18
Wa @ react-dom.production.min.js:122
Ie @ react-dom.production.min.js:292
Xt @ react-dom.production.min.js:73
At the end create a Github repo here, but without any file of the project. Only a Codesandbox template.
How has this issue affected you? What are you trying to accomplish?
Create a repo in Github from a project in CodeDandbox
To Reproduce
I try setting public, private, different repo names, but not luck.
I think is related to the system doesn't select the default Github organization or CodeSandbox workspace.

Error line in the code:

Link to sandbox: link (optional)
Your Environment
| Software | Name/Version |
|---|---|
| Сodesandbox | c64c763 |
| Browser | Chrome |
| Operating System | Macos |
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in ConvertToRepositoryForm.tsx around lines 126-140 and reproduce the failure using the linked sandbox with a personal GitHub account. Trace the repository-creation flow and verify that creating a repository succeeds with the sandbox files present, rather than only an empty template repository.
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
- 35/100