Closed nsisodiya closed 3 years ago
It's not the problem of keyword 'static'. The problem is you cannot declare fields (includes public and private, static and non-static) in the brace of class. You can use a getter/setter or do this outside the class:
class Foo { static get staticField () { return ''; } constructor() { this.instanceField = ''; } // instanceField = ''; // error get instanceField () { return ''; } } Foo.staticField = '';
My code is like this
The
SignUpForm.js'
code is likeGetting the following error message. Searching the Internet but not able to get a list of all options to try.