I'm running babelify 7.2.0 with Gulp and I'm getting an error on the following code:
class One {}
class Two extends One {
constructor() {
this.name = 'John';
}
}
Here is the crux of the error:
SyntaxError: [the file path in question]: 'this' is not allowed before super()
20 | class Two extends One {
21 | constructor() {
> 22 | this.name = 'John';
| ^
23 | }
24 | }
25 |
It seems to me that this should not be firing because I am not making any super
calls within the constructor at all so there's no risk of conflict. I've submitted an issue already on Github but I'm wondering if there's a way I can turn it off in the mean time.