umijs / umi

A framework in react community ✨
https://umijs.org
MIT License
15.31k stars 2.65k forks source link

[Bug] 启动编译出错 Fields with the 'declare' modifier cannot be initialized here #12712

Open starofys opened 1 week ago

starofys commented 1 week ago

Fields with the 'declare' modifier cannot be initialized here, but only in the constructor

image

Mini Showcase Repository(REQUIRED)

https://github.com/starofys/umi-app-isuse

How To Reproduce

pnpm run dev

Context

starofys commented 6 days ago

vite模式下是正常的