Skip to content

Commit b6a3778

Browse files
committed
Pin deps
1 parent f16a0cb commit b6a3778

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/components/MDX/Sandpack/template.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@ root.render(
3434
test: 'react-scripts test --env=jsdom',
3535
eject: 'react-scripts eject',
3636
},
37+
// pin these deps to avoid issues
38+
// with sandpack's dependency resolution
3739
dependencies: {
38-
react: '^19.2.0',
39-
'react-dom': '^19.2.0',
40+
react: '19.2.0',
41+
'react-dom': '19.2.0',
4042
'react-scripts': '^5.0.0',
4143
},
4244
},

src/components/MDX/SandpackWithHTMLOutput.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ export default function formatHTML(markup) {
5656
const packageJSON = `
5757
{
5858
"dependencies": {
59-
"react": "^19.2.0",
60-
"react-dom": "^19.2.0",
59+
"react": "19.2.0",
60+
"react-dom": "19.2.0",
6161
"react-scripts": "^5.0.0",
6262
"html-format": "^1.1.2"
6363
},

0 commit comments

Comments
 (0)