-
-
Notifications
You must be signed in to change notification settings - Fork 129
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
React class parse error #93
Comments
Related to #86 |
@cheton
In my project, i prefer using property function instead of member function to avoid binding to this instance. Please help. |
any updates? |
Check my answer on #88 for some ideas. |
@deema089786 @saravanan10393 @LuisSaybe can you check if #112 ( |
@deema089786 @saravanan10393 @LuisSaybe since my patch has been released, can you check again with |
@ctavan works now with latest, thanks so much for giving your time |
I am using i18next-scanner for get strings from my components. But if I use class field like this
export default class Main extends Component {
static testvalue = 12;
render(){return(<div><Trans>some string</Trans></div>)}
}
"static testvalue = 12" cause this error
18next-scanner: Unable to parse Trans component with the content
{ SyntaxError: Unexpected token (10:19)
If I don't use this way for define class fields all works good. How can I fix it?
The text was updated successfully, but these errors were encountered: