Closed drumm2k closed 1 month ago
vite field in config has any type
vite
any
The reason is wrong import path in node_modules/@solidjs/start/config/index.d.ts
node_modules/@solidjs/start/config/index.d.ts
Cannot find module 'vinxi/dist/types/lib/vite-dev' or its corresponding type declarations.
import type { CustomizableConfig } from "vinxi/dist/types/lib/vite-dev"; type ViteCustomizableConfig = CustomizableConfig & { server?: InlineConfig["server"]; }
Tried to fix this issue by myself, but vinxi doesn't export CustomizableConfig in any obvious way
vinxi
CustomizableConfig
Vite field has right typings in the config
Steps:
defineConfig
app.config.ts
Would love to have good DX when vite options in config are typed
Package manager: pnpm (9.1.2) Editor: vscode (latest stable) Installed packages: "@solidjs/start": "^1.0.0", "vinxi": "^0.3.11"
found duplicate, so closing this issue
Duplicates
Latest version
Current behavior 😯
vite
field in config hasany
typeThe reason is wrong import path in
node_modules/@solidjs/start/config/index.d.ts
Cannot find module 'vinxi/dist/types/lib/vite-dev' or its corresponding type declarations.
Tried to fix this issue by myself, but
vinxi
doesn't exportCustomizableConfig
in any obvious wayExpected behavior 🤔
Vite field has right typings in the config
Steps to reproduce 🕹
Steps:
vite
field todefineConfig
inapp.config.ts
Context 🔦
Would love to have good DX when vite options in config are typed
Your environment 🌎