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

[0.25.1][Android][Picker][BUG] On build release #7691

Closed
Deviloppeur opened this issue May 23, 2016 · 0 comments
Closed

[0.25.1][Android][Picker][BUG] On build release #7691

Deviloppeur opened this issue May 23, 2016 · 0 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@Deviloppeur
Copy link

Deviloppeur commented May 23, 2016

Hi,

  render() {
    const {addresses, deliveryAddress} = this.props;

    const data = this._buildData();

    return addresses.size == 0 ? null : (
      <Picker
        ref={picker => this.picker = picker}
        style={{height: Dimensions.get('window').height / 3}}
        onValueChange={this._onValueChanged.bind(this)}
        selectedValue={this._buildSelectedValue()}
      >
        {data.map((datum, index) => {
          return (
            <Picker.Item key={index} label={datum.alias} value={datum.id}> </PickerItem>
          )
        })}
      </Picker>
    )
  }

This code will failed on trying to build release version (on Android) with gradle.

$> ./gradlew assembleRelease

/Users/christophe/Documents/brico/node_modules/promise/lib/done.js:10
      throw err;
      ^
TypeError: /Users/christophe/Documents/brico/src/native/carrier/AddressPicker.react.js: Property object of JSXMemberExpression expected node to be of a type ["JSXMemberExpression","JSXIdentifier"] but instead got "MemberExpression"
    at Object.validate (/Users/christophe/Documents/brico/node_modules/babel-types/lib/definitions/index.js:115:13)
    at Object.validate (/Users/christophe/Documents/brico/node_modules/babel-types/lib/index.js:552:9)
    at NodePath._replaceWith (/Users/christophe/Documents/brico/node_modules/babel-traverse/lib/path/replacement.js:214:7)
    at NodePath.replaceWith (/Users/christophe/Documents/brico/node_modules/babel-traverse/lib/path/replacement.js:192:8)
    at Object.ReferencedIdentifier (/Users/christophe/Documents/brico/node_modules/babel-plugin-transform-es2015-modules-commonjs/lib/index.js:36:14)
    at Object.newFn (/Users/christophe/Documents/brico/node_modules/babel-traverse/lib/visitors.js:343:17)
    at NodePath._call (/Users/christophe/Documents/brico/node_modules/babel-traverse/lib/path/context.js:78:18)
    at NodePath.call (/Users/christophe/Documents/brico/node_modules/babel-traverse/lib/path/context.js:49:17)
    at NodePath.visit (/Users/christophe/Documents/brico/node_modules/babel-traverse/lib/path/context.js:108:12)
TransformError: /Users/christophe/Documents/brico/src/native/carrier/AddressPicker.react.js: /Users/christophe/Documents/brico/src/native/carrier/AddressPicker.react.js: Property object of JSXMemberExpression expected node to be of a type ["JSXMemberExpression","JSXIdentifier"] but instead got "MemberExpression"
:app:bundleReleaseJsAndAssets FAILED

Regards,
Christophe

@Deviloppeur Deviloppeur changed the title [0.25.1][Android][Picker][BUG] On build realease [0.25.1][Android][Picker][BUG] On build release May 23, 2016
@facebook facebook locked as resolved and limited conversation to collaborators May 24, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

2 participants