We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f16a0cb commit b6a3778Copy full SHA for b6a3778
src/components/MDX/Sandpack/template.ts
@@ -34,9 +34,11 @@ root.render(
34
test: 'react-scripts test --env=jsdom',
35
eject: 'react-scripts eject',
36
},
37
+ // pin these deps to avoid issues
38
+ // with sandpack's dependency resolution
39
dependencies: {
- react: '^19.2.0',
- 'react-dom': '^19.2.0',
40
+ react: '19.2.0',
41
+ 'react-dom': '19.2.0',
42
'react-scripts': '^5.0.0',
43
44
src/components/MDX/SandpackWithHTMLOutput.tsx
@@ -56,8 +56,8 @@ export default function formatHTML(markup) {
56
const packageJSON = `
57
{
58
"dependencies": {
59
- "react": "^19.2.0",
60
- "react-dom": "^19.2.0",
+ "react": "19.2.0",
+ "react-dom": "19.2.0",
61
"react-scripts": "^5.0.0",
62
"html-format": "^1.1.2"
63
0 commit comments