question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RN 0.56 - bundle error "A trailing comma is not permitted after the rest element"

See original GitHub issue

Issue type

  • bug report
  • feature request

Issue description

Right after init plain, fresh react-native app (RN version 0.56) and adding react-native-ui-kitten I am getting following error:

/node_modules/react-native-ui-kitten/src/components/image/rkModalImg.js: A trailing comma is not permitted after the rest element (277:17)

  275 |       index,
  276 |       style: imgStyle,
> 277 |       ...imgProps,
      |                  ^
  278 |     } = this.props;

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9

github_iconTop GitHub Comments

2reactions
usfslkcommented, Sep 16, 2018

@usfslk yes, that’s why I am waiting for the fix. Delayed the upgrade for now

Why does it take so much time to remove a comma and push a commit? I’m new to these report issues stuff, there’s also many libraries that break my code just by installing and importing them

1reaction
GiarcEnoredlaccommented, Aug 29, 2018

+1 as well

Read more comments on GitHub >

github_iconTop Results From Across the Web

object-rest-spread is not allowed trailing commas in babel 7
Trailing commas for object rest is not supported in EcmaScript standard, i.e. it's not valid code. If you previously had commas there then...
Read more >
A trailing comma is not permitted after the rest element (9:32)
SyntaxError: A trailing comma is not permitted after the rest element (9:32) ... the bug Removed trailing comma, which is a breaking change...
Read more >
Object-Rest-Spread Is Not Allowed Trailing Commas In ... - ADocLib
I've just upgraded to React Native 0.56 which moved to Babel 7. And here the error I've got: error: bundling failed: SyntaxError: /Users/....
Read more >
react-native-codegen | Yarn - Package Manager
Stop styles from being reset when detaching Animated. ... Revert "Fix TextInput dropping text when used as uncontrolled component with defaultValue " to...
Read more >
2020-2021-ccc-plus-encounter-data-validation-aggregate ...
validity of key data elements in the encounter data. ... maternity/prenatal claims that pay as a bundle, even though there are no bundled...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found