feathersjs-ecosystem/feathers-react-native-chat

Decorators are "unexpected tokens"

Pampounet opened this issue ยท 8 comments

While I try to run iOS version, I get this error :
simulator screen shot 10 avr 2017 a 19 09 59

This refers to @autobind @observer in Application.js
I tried to add a .babelrc file containing { "plugins": ["babel-plugin-transform-decorators-legacy"] } but it does not work... Is this a problem with my configuration ?
I really want to test it, to better understand Feathers running...

Thanks !

Are you running this app or another app with some of this code?

@corymsmith I'm running the exact same repo on GitHub, without any modifications !
Okay I try your suggestions :)

And you ran npm install?

I have checked everything again (to see if the files were there as foreseen), and it's the exact copy of the repo.

Yes, i have run npm install...

My bad, I was doing mistakes with my terminal... Very sorry for the inconvenience !

By the way, Feathersjs is amazing and I really congratulate all of you ๐Ÿ‘

@Pampounet What did you do wrong in the terminal. I'm encountering a similar issue and I can't find the answer I need

why06 commented

If anyone is having this issue, you may need to restart metro bundler. Seems kinda obvious now, but it took me way too long to figure out.