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.

Aperta
#4,996 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
triage
Lingua principale
TypeScript
Stelle
2k
Fork
682
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

**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'
`

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.