Open
Description
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.
Metadata
Metadata
Assignees
Labels
No labels