tuckerconnelly / carbon-ui

React Native Material Design library for all platforms
MIT License
210 stars 17 forks source link

Unknown 'web' Module with Relative Path #4

Closed mattferrin closed 7 years ago

mattferrin commented 7 years ago

Unable to resolve 'web' module.

simulator screen shot dec 9 2016 5 04 23 pm

tuckerconnelly commented 7 years ago

Add ./web/index.js like here: https://github.com/tuckerconnelly/react-stack-nav-examples/blob/master/Drawer/web/index.js

This will go away once we get https://github.com/tuckerconnelly/carbon-ui/issues/1 done

Thanks a bunch btw for going through the setup and filing these issues :) Will use all of this to smooth out the process as much as possible

remon-nashid commented 7 years ago

Yeah, besides carbon-ui installation, I had to follow tuckerconnelly/react-native-web installation steps as well, which mentions adding index.js. Perhaps we can be a bit redundant by copying those instructions to carbon-ui too, at least for now.

mattferrin commented 7 years ago

And I'm using carbon-ui as a 'polyfill' for material-ui, so it seemed unnecessary for me to need to do this web step entirely since I was executing React Native code. Just feedback.

tuckerconnelly commented 7 years ago

It should work out-of-the-box with just React Native :) Try deleting all the web stuff and lemme know how it blows up.

tuckerconnelly commented 7 years ago

Ok, this is fixed on tuckerconnelly/react-native-web. Gonna track react-native-web stuff on https://github.com/tuckerconnelly/carbon-ui/issues/1