Description: Ts 错 误 Declaration of public instance field not allowed after Declaration of public instance method. Instead, this should come at the beginning of the class/interface.

Cause: A function was inserted before declaring a variable

Solution: Bring variable declarations to the front

  • Error writing

  • Correct term