Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

react-intl-cra not working with es6 decorators #480

Closed
gauravmakkar opened this issue Nov 21, 2017 · 2 comments
Closed

react-intl-cra not working with es6 decorators #480

gauravmakkar opened this issue Nov 21, 2017 · 2 comments

Comments

@gauravmakkar
Copy link

PACKAGES

  • react-intl-cra

**

react-intl-cra './src/**/*.js' './messages.json'

{ SyntaxError: unknown: Unexpected token (9:1)
7 | const defaultStyle = {};
8 |

9 | @NotificationBar
| ^
10 | export default class BarcodeInputWrapper extends Component {
11 |
**

@evenchange4
Copy link
Member

The react-intl-cra CLI is based on CRA (Create-React-App), and it doesn’t support decorator syntax at the moment.

React-intl-cra is just a workaround for create-react-app #1227 and react-intl #869 in unofficial way. If you already eject the CRA project, I recommend using the official way to extract the message files. 😄

@evenchange4
Copy link
Member

Close it. I moved react-intl-cra to standalone repo. Please feel free to create issues there if you have any problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants