Skip to content

Commit d8b65b7

Browse files
davidturnbullclaude
andcommitted
fix: resolve vite type incompatibilities by enforcing single @types/node version
The root cause was multiple @types/node versions (22.x and 24.x) in the monorepo causing pnpm to install vite multiple times with different type definitions. TypeScript treats Plugin types from different vite installations as incompatible. Solution: - Added @types/node: ^22.0.0 to pnpm overrides - Removed workaround 'as any' cast from adonisjs vite.config.ts - All packages now use unified @types/[email protected] 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 5153629 commit d8b65b7

File tree

3 files changed

+114
-429
lines changed

3 files changed

+114
-429
lines changed

demo/adonisjs/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const viteConfig: UserConfig = {
1616
useDirective: false,
1717
debug: false,
1818
models: 'lingo.dev',
19-
}) as any,
19+
}),
2020
inertia({
2121
ssr: {
2222
enabled: true,

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
},
1414
"pnpm": {
1515
"overrides": {
16-
"vite": "^6.0.0"
16+
"vite": "^6.0.0",
17+
"@types/node": "^22.0.0"
1718
}
1819
},
1920
"devDependencies": {

0 commit comments

Comments
 (0)