flow-runtime
flow-runtime copied to clipboard
Transform error while integrating flow-runtime-mobx with react native (ios)
This is a:
- [x] Bug Report
- [ ] Feature Request
- [ ] Question
- [ ] Other
Which concerns:
- [x] flow-runtime
- [x] babel-plugin-flow-runtime
- [ ] flow-runtime-validators
- [x] 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?
- It has to work like mentioned here: https://codemix.github.io/flow-runtime/#/flow-runtime-mobx
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, https://github.com/codemix/flow-runtime/issues/17 tried solutions suggested by @phpnode and @skovhus and others, but no progress 👎
I have posted a similar issue here: https://github.com/codemix/flow-runtime/issues/216