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.

未关闭
#4,996 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
triage
主要语言
TypeScript
星标
2k
派生
682
PR 合并指标
30 天内没有已合并 PR

描述

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

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。