My current setup involves using babelify 7.2.0 with Gulp, but I've encountered an error when working with the following code snippet:
class One {}
class Two extends One {
constructor() {
this.name = 'John';
}
}
The issue at hand is as follows:
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 |
Based on my understanding, it seems like this error should not be occurring because there are no super
calls within the constructor that could cause a conflict. I have already raised an issue on Github regarding this matter, but I am curious if there is a workaround to temporarily disable it.