Skip to content

Commit f2b6c8e

Browse files
committed
"^" should be fixed now
1 parent 6055885 commit f2b6c8e

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/components/MDX/Sandpack/template.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,9 @@ 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
3937
dependencies: {
40-
react: '19.2.0',
41-
'react-dom': '19.2.0',
38+
react: '^19.2.0',
39+
'react-dom': '^19.2.0',
4240
'react-scripts': '^5.0.0',
4341
},
4442
},

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)