SyntaxError: super() outside of class constructor
Hi, I getting error from manual on Facebook docs.
Failed to compile.
Error in ./src/App.js
Syntax error: super() outside of class constructor (8:4)
6 |
7 | construtor() {
> 8 | super()
| ^
@ ./src/index.js 13:11-27
npm -v = 4.0.3 node -v = 7.1.0
What's wrong with this syntax?
Does line 7 have a typo? construtor => constructor
Oh my gosh I spent 20 min with "contructor" instead "constructor"
Had same issue.. thanks @existentialism
Idem :D
This will be solved in https://github.com/babel/babylon/pull/408 with better error message.
omg! It's kinda weird all getting typos with constructor ! ME TOO :+1: LOL
:+1:
Glad that I found this post, have been reviewing the code from past 1 hour. lol
This just happened to me now lol
Same here.
this happened to me twice...NOT HAPPENING AGAIN!
same here!!! Good job.
All,
I'll mute this issue since so many of you are involved -- this should be fixed soon as Babel 7 is on the horizon.
Thanks!