generator-react-mobx icon indicating copy to clipboard operation
generator-react-mobx copied to clipboard

Babel Config Not Working Properly

Open kcgunn opened this issue 10 years ago • 2 comments

I'm running this project on a MAC OS box...getting compile errors on ES2015 features, mainly spread operator and arrow functions. Getting unexpected token on these, but they are part of the es2015 feature set. Possibility that Babel is not setup correctly?

kcgunn avatar Jun 16 '16 21:06 kcgunn

Can you provide more error info? I think there is something wrong with your env.

leftstick avatar Jun 17 '16 01:06 leftstick

I think you might put the ES2015 features in *.jsx files , you can resolve this issue by write the ES2015 syntax in *.js

yuchunbo avatar Jul 18 '16 15:07 yuchunbo