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

A trailing comma is not permitted after the rest element: const {shouldUpdated, ...props, } = Props; #937

Closed
eugle opened this issue Sep 17, 2018 · 8 comments

Comments

@eugle
Copy link

eugle commented Sep 17, 2018

error: bundling failed: SyntaxError: /Users/superman/Projects/exbuzz-app-react-native/node_modules/react-native-scrollable-tab-view/SceneComponent.js: A trailing comma is not permitted after the rest element (9:32)

7 |
8 | const SceneComponent = (Props) => {

9 | const {shouldUpdated, ...props, } = Props;
| ^
10 | return <View {...props}>
11 |

@Maple13
Copy link

Maple13 commented Sep 18, 2018

#901

@Mcl-123
Copy link

Mcl-123 commented Sep 18, 2018

I meet the same mistake and don't know how to solve it.

@eugle
Copy link
Author

eugle commented Sep 18, 2018

I solved this problem, I'm not going to wait for the author, I used this branch
https://www.npmjs.com/package/react-native-scrollable-tab-view2

@ihor
Copy link

ihor commented Sep 20, 2018

Actually, this issue is already fixed in the master branch. You can switch to it in your dependencies:

"react-native-scrollable-tab-view": "git+https://github.com/happypancake/react-native-scrollable-tab-view.git",

@tuluffy
Copy link

tuluffy commented Oct 8, 2018

This is a grammatical mistake with JS, it has been solved.
Just delete the comma after the Props in line 9 of node_modules/react-native-scrollable-tab-view/Scenecomponent.js

image

@pvinis
Copy link

pvinis commented Oct 8, 2018

changing something in node_modules is not a solution. it's a temporary fix.

@Clearives
Copy link

A trailing comma is not permitted after the rest element,hope to fix,thanks~

image

@ptomasroos
Copy link
Owner

This has now been published, truly sorry for the delay on this: 0.9.0

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

No branches or pull requests

8 participants