ionic-team / ionic-team/ionic-cli

cli 7.0.0, react, vite config has type error. The import of the type is from the wrong source because of vitest+jest-dom.

Abierto
#4,996 0 comentarios 0 reacciones 0 asignados Ver en GitHub
triage
Lenguaje dominante
TypeScript
Estrellas
2k
Forks
682
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

**Description:**
Ionic CLI 7.0.0 react project with vite has a type error in vite config. This is because the react project is set up with vitest and jest-dom.

**Steps to Reproduce:**
Start a blank react project. Open `vite.config.ts`

The problem is this line:
`
import { defineConfig } from 'vite'
`
**Solution:**

Output should be:
`
import { defineConfig } from 'vitest/config'
`

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Create a blank Ionic React project and inspect its generated vite.config.ts, starting with the defineConfig import that the issue identifies. Confirm the generated Vite configuration no longer reports the described type error and that the import comes from the expected source.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
react, typescript, vite
Área
build-system, cli
Tipo de issue
Error
Dificultad
2/5
Tiempo estimado
1-3 horas
Estado de actividad
Estancado
Claridad
Bien especificado
Aptitud para principiantes
52/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.