Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
starofys opened this issue Sep 22, 2024 · 1 comment

Comments

@starofys
Copy link

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

  • Umi Version: 4.3.20
  • Node Version: v20.9.0
  • Platform: windows
@starofys
Copy link
Author

vite模式下是正常的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant