Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Transform error while integrating flow-runtime-mobx with react native (ios) #193

Open
4 of 10 tasks
PavanGangireddy opened this issue Jan 25, 2018 · 1 comment
Open
4 of 10 tasks

Comments

@PavanGangireddy
Copy link

PavanGangireddy commented Jan 25, 2018

This is a:

  • Bug Report
  • Feature Request
  • Question
  • Other

Which concerns:

  • flow-runtime
  • babel-plugin-flow-runtime
  • flow-runtime-validators
  • flow-runtime-mobx
  • flow-config-parser
  • The documentation website

What is the current behaviour?

I have got transform error while implementing mobx support for flow runtime in react native ios,
it is:

error: bundling failed: "TransformError: /../../node_modules/react-native/Libraries/Renderer/shims/ReactNativeTypes.js:/../../node_modules/react-native/Libraries/Renderer/shims/ReactNativeT.ypes.js: Property value expected type of string but got null"


What is the expected behaviour?


Which package versions are you using?

  • babel-eslint: 8.0.2
  • babel-plugin-flow-react-proptypes: 6.1.0
  • babel-plugin-module-resolver:3.0.0-beta.5
  • babel-plugin-transform-class-properties: 6.24.1
  • babel-plugin-transform-decorators-legacy: 1.3.4
  • babel-plugin-transform-react-remove-prop-types: 0.4.10
  • babel-preset-es2015: 6.24.1
  • babel-preset-flow: 6.23.0
  • babel-preset-react-native: 2.1.0
  • react: 16.0.0
  • react-native: 0.48.4
  • mobx: 3.3.1
  • mobx-persist: 0.3.4
  • mobx-react: 4.3.3

.babelrc

{
  "presets": ["react-native", "flow"],
  "env": {
    "development": {
      "plugins": [
        ["flow-react-proptypes", { "ignoreNodeModules": true }],
        [
          "transform-react-remove-prop-types",
          {
            "mode": "remove",
            "ignoreFilenames": ["node_modules"],
            "removeImport": true
          }
        ],
        [
          "flow-runtime",
          {
            "assert": true,
            "annotate": true
          }
        ]
      ]
    }
  },
  "plugins": [
    "transform-decorators-legacy",
    "transform-class-properties",
    [
      "module-resolver",
      {
        "extensions": [".js", ".ios.js", ".android.js"]
      }
    ]
  ],
  "comments": false
}

NOTE: Have posted the same here: https://stackoverflow.com/questions/48424965/transformerror-property-value-expected-type-of-string-but-got-null
Have looked into this, #17 tried solutions suggested by @phpnode and @skovhus and others, but no progress 👎

@semireg
Copy link

semireg commented Oct 31, 2018

I have posted a similar issue here: #216

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

No branches or pull requests

3 participants