Transform error while integrating flow-runtime-mobx with react native (ios)
- Dominant language
- JavaScript
- Stars
- 797
- Forks
- 49
- PR merge metrics
- No merged PRs in 30d
Description
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 👎
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.