Closed Janpot closed 1 year ago
I noticed the default create-react-app
template that ours is based on uses a src
folder to contain the application. I suspect that it could start working if we change https://github.com/mui/material-ui/blob/7f81475ea148a416ec8fab252120ce6567c62897/docs/src/modules/sandbox/CodeSandbox.ts#L44-L49
to
[`src/index.${ext}`]: {
content: CRA.getRootIndex(demoData),
},
[`src/Demo.${ext}`]: {
content: demoData.raw,
},
Hey @siriwatknp,
I'm interested in working on this issue. Could you please assign it to me? I'd appreciate some guidance on how to get started and the best approach to tackle this.
Thanks!
Hey @siriwatknp,
I'm interested in working on this issue. Could you please assign it to me? I'd appreciate some guidance on how to get started and the best approach to tackle this.
Thanks!
Assigned, thanks for asking!
Hi @siriwatknp, Thank you for assigning the issue to me. I've taken a closer look at the problem and the suggestions provided by Janpot. I'm considering starting with the file structure adjustment as proposed. Before I proceed, I'd appreciate any insights or suggestions you might have on this approach or if there are other considerations I should be aware of.
Is this issue open ? Should I start working on it??
Hi @siriwatknp, Thank you for assigning the issue to me. I've taken a closer look at the problem and the suggestions provided by Janpot. I'm considering starting with the file structure adjustment as proposed. Before I proceed, I'd appreciate any insights or suggestions you might have on this approach or if there are other considerations I should be aware of.
I think you can try the suggestion from @Janpot and see if it solve the problem.
Hi, I have just started contributing to open source. If there are any changes you'd like to make to the PR please free to! PS - Thank you @Janpot, the suggestion was tremendously helpful!
Duplicates
Latest version
Steps to reproduce 🕹
Link to live example:
Steps:
In Files, click "export to ZIP"
yarn && yarn start
Current behavior 😯
Expected behavior 🤔
mv src/tsconfig.json tsconfig.json
yarn start
Now it works
Context 🔦
Additionally when you log in, fork, and go to the docker tab and convert to a cloud sandbox, the same happens:
Related issue? https://github.com/mui/material-ui/issues/38530
Your environment 🌎
``` Don't forget to mention which browser you used. Output from `npx @mui/envinfo` goes here. ```npx @mui/envinfo