Closed kennarddh closed 3 months ago
If you want to ask for support or request features, sponsor the project and contact me over email.
Describe the bug A clear and concise description of what the bug is.
Cannot change snippetFileName in SandpackPreset to value other than /App.js
snippetFileName
/App.js
This bug only happen if snippetFileName is not /App.js
Reproduction Start from https://codesandbox.io/p/sandbox/mdx-editor-base-q8s7zr?file=/src/App.tsx to reproduce the problem so that I can observe the issue on my side and make sure that the fix reliably addresses it.
https://codesandbox.io/p/sandbox/mdx-editor-base-forked-g3wymh?file=/src/App.tsx
To Reproduce Steps to reproduce the behavior:
App.js
Expected behavior A clear and concise description of what you expected to happen. It should only has 1 file as the config and it should be editable.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context Add any other context about the problem here.
I think this might be related to sandpack and its templates, can you make this work with sandpack itself outside of the MDXEditor?
@kennarddh did you figure this out?
no, not yet.
If you want to ask for support or request features, sponsor the project and contact me over email.
Describe the bug A clear and concise description of what the bug is.
Cannot change
snippetFileName
in SandpackPreset to value other than/App.js
This bug only happen if
snippetFileName
is not/App.js
Reproduction Start from https://codesandbox.io/p/sandbox/mdx-editor-base-q8s7zr?file=/src/App.tsx to reproduce the problem so that I can observe the issue on my side and make sure that the fix reliably addresses it.
https://codesandbox.io/p/sandbox/mdx-editor-base-forked-g3wymh?file=/src/App.tsx
To Reproduce Steps to reproduce the behavior:
App.js
. The default one is the only one that is editable.Expected behavior A clear and concise description of what you expected to happen. It should only has 1 file as the config and it should be editable.
Screenshots If applicable, add screenshots to help explain your problem.![image](https://github.com/mdx-editor/editor/assets/79390992/52bccf98-59b6-48d2-baeb-e2089b26bad2)
Desktop (please complete the following information):
Additional context Add any other context about the problem here.