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.

Đang mở
#4,996 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
triage
Ngôn ngữ chính
TypeScript
Star
2k
Fork
682
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.