ex-navigation icon indicating copy to clipboard operation
ex-navigation copied to clipboard

Unexpected token in source code

Open dayhaysoos opened this issue 8 years ago • 3 comments

screen shot 2017-02-13 at 9 04 38 am

I have a boilerplate that I was able to use several times in the past. I've tried using it again today and for some reason I'm getting this error. It seems to be that the unexpected token is *, however, it's still working in my other projects that have this exact code.

Any idea how I can tackle this?

dayhaysoos avatar Feb 13 '17 14:02 dayhaysoos

I am getting exactly the same message, having created a new react native project using react-native init xxx and then npm i -S @exponent/ex-navigation.

grubstarstar avatar Feb 15 '17 23:02 grubstarstar

you likely have the wrong babel presets:

https://github.com/exponent/ex-navigation#installation

alxyuu avatar Feb 17 '17 04:02 alxyuu

I changed the .babelrc file as per your comment above, but I still keep getting the error when building the android apk. Is there any additional step to perform after editing the file? Do I need to rebuild the entire project from scratch?

parijatsahai avatar May 23 '17 16:05 parijatsahai