react-native-emoticons icon indicating copy to clipboard operation
react-native-emoticons copied to clipboard

A trailing comma is not permitted after the rest element

Open icastillejogomez opened this issue 6 years ago • 4 comments

When I import the module appers this error:

/app/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 |       <StaticContainer shouldUpdate={shouldUpdated}>
  12 |         {props.children}

icastillejogomez avatar Dec 18 '18 22:12 icastillejogomez

any update on this?

UzairAhmedSiddiqui avatar Mar 27 '19 23:03 UzairAhmedSiddiqui

@UzairAhmedSiddiqui you can just have a work around on this by removing , in
const {shouldUpdated, ...props, } = Props; in the node_modules/react-native-scrollable-tab-view/SceneComponent.js

saikiranoptisol avatar Jul 09 '19 08:07 saikiranoptisol

Honestly, that is not a workaround. node modules are never committed. This will only work if you are working on a local environment. Please fix this

chhavi-khandelwal avatar Apr 09 '20 09:04 chhavi-khandelwal

When I import the module appers this error:

/app/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 |       <StaticContainer shouldUpdate={shouldUpdated}>
  12 |         {props.children}

Also experiencing similar issue as well. Any resolution yet on this?

enaiho avatar Jul 05 '21 10:07 enaiho