diff --git a/examples/react/frontend/package.json b/examples/react/frontend/package.json index faf41499a..fd586404a 100644 --- a/examples/react/frontend/package.json +++ b/examples/react/frontend/package.json @@ -13,6 +13,8 @@ "react-dom": "^19.2.6" }, "devDependencies": { + "@types/react": "^19.2.14", + "@types/react-dom": "^19.2.3", "@vitejs/plugin-react": "^6.0.1", "vite": "^8.0.11" } diff --git a/src/tooling/templates.zig b/src/tooling/templates.zig index 955e0cddc..c401d5699 100644 --- a/src/tooling/templates.zig +++ b/src/tooling/templates.zig @@ -1343,6 +1343,8 @@ fn reactPackageJson(allocator: std.mem.Allocator, names: TemplateNames) ![]const \\ "react-dom": "^19.2.6" \\ }, \\ "devDependencies": { + \\ "@types/react": "^19.2.14", + \\ "@types/react-dom": "^19.2.3", \\ "@vitejs/plugin-react": "^6.0.1", \\ "vite": "^8.0.11" \\ }