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.

Open
#4,996 0 comments 0 reactions 0 assignees View on GitHub
triage
Dominant language
TypeScript
Stars
2k
Forks
682
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.