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

Support react fragments #2072

Closed
elstr opened this issue Oct 16, 2019 · 1 comment · Fixed by #2073
Closed

Support react fragments #2072

elstr opened this issue Oct 16, 2019 · 1 comment · Fixed by #2073
Assignees

Comments

@elstr
Copy link

elstr commented Oct 16, 2019

Description

When using react fragments as <> </> and running bit status you get an Unexpected token error.
After changing all fragments to div tags the error is solved.
I'm using bit version 14.4.1

Describe the solution you'd like

Would be useful to be able to use the latest react features 😃

@davidfirst
Copy link
Member

It happened due to an old version of the module-definition package required by bit-javascript. This package required babel@6.x, which doesn't support React fragments.
Fixed by updating that package and many more.

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

Successfully merging a pull request may close this issue.

2 participants