Open SarjuHansaliya opened 8 years ago
Tell me a bit of how you have congifured your enviroment? Do you use webpack, I answer this because I see you are using resct-native. I'm thinking why this trouble could be happen, and then I remember that in the redux-autoform package.json react is included as a dependency and not as a devDependency. So, may be, when you try to use the EditComponentFactory this component wants to use its own react version, but you have added one, resulting on this error.
Probe the following, in your node_modules localize the redux-autoform-bootstrap-ui package. Then, inside this package, delete from the package node_modules react. And run it again, with that we could see if the problem it's related to what I tell you before.
Let me know if this help you!
Also, we current don't support Redux Form 6. We're still adding support. We should probably do something so it will trigger an unmet peer dependency error
@JonatanSalas No I am not using webpack.I am using direct grunt and typescript combination. But I didn't get your "in your node_modules localize the redux-autoform-bootstrap-ui package. Then, inside this package" point. Can you elaborate?
Also I checked that in "redux-form 6.0.2" package.json , react is in devDependencies.
@SarjuHansaliya we don't support yet redux-form v6. Redux-Autoform is based on Redux-form version 5.3.0. Try moving the 6.0.2 version to 5.3.0, reinstall and test it!
I am facing this issue when I uncomment following line.
import { EditComponentFactory } from 'redux-autoform-bootstrap-ui';
Here is my package.json
And here is my imports in main file.
Can you help me what might be the issue?