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.
- Linguagem predominante
- TypeScript
- Estrelas
- 2k
- Forks
- 682
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
**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'
`
Guia de contribuição
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- react, typescript, vite
- Domínio
- build-system, cli
- Tipo de issue
- Bug
- Dificuldade
- 2/5
- Tempo estimado
- 1-3 horas
- Status de atividade
- Estagnada
- Clareza
- Claramente especificada
- Facilidade para iniciantes
- 52/100