You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, I was following your tutorial and on step 3 about object destructuring, I kept getting an unexpected token error from the line let {monthlyPayment, monthlyRate} = calculateMonthlyPayment(principal, years, rate);
Figured out that Babel 6 wasn't transpiling es2015 by default. Fixed it by adding a .babelrc file, reference:
{
"presets": ["es2015"]
}
Thanks for making this, it's been helpful.
The text was updated successfully, but these errors were encountered:
Hey, I was following your tutorial and on step 3 about object destructuring, I kept getting an unexpected token error from the line
let {monthlyPayment, monthlyRate} = calculateMonthlyPayment(principal, years, rate);
Figured out that Babel 6 wasn't transpiling es2015 by default. Fixed it by adding a
.babelrc
file, reference:Thanks for making this, it's been helpful.
The text was updated successfully, but these errors were encountered: