issues
search
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
Mini Showcase Repository(REQUIRED)
https://github.com/starofys/umi-app-isuse
How To Reproduce
pnpm run dev
Context
Umi Version
: 4.3.20
Node Version
: v20.9.0
Platform
: windows
starofys
commented
6 days ago
vite模式下是正常的
Fields with the 'declare' modifier cannot be initialized here, but only in the constructor
Mini Showcase Repository(REQUIRED)
https://github.com/starofys/umi-app-isuse
How To Reproduce
pnpm run dev
Context