suhailkakar / react-native-medusajs

An ecommerce mobile application built using react native and MedusaJS
63 stars 25 forks source link

Error while running #1

Open vikashranjan opened 2 years ago

vikashranjan commented 2 years ago

Web Bundling complete 5366ms
./node_modules/react-native-router-flux/src/Store.js:942:26
"export 'POP_AND_PUSH' (imported as 'ActionConst') was not found in './ActionConst'
  940 |   popAndPush = (routeName, data) => {
  941 |     const params = filterParam(data);
> 942 |     this.dispatch({ type: ActionConst.POP_AND_PUSH, routeName, params });
      |                          ^
  943 |   };
  944 | 
  945 |   replace = (routeName, data) => {
./node_modules/react-native-router-flux/src/Router.js:135:14
"export 'ViewPropTypes' was not found in 'react-native-web/dist/index'
  133 |   wrapBy: PropTypes.func,
  134 |   getSceneStyle: PropTypes.func,
> 135 |   sceneStyle: ViewPropTypes.style,
      |              ^
  136 |   createReducer: PropTypes.func,
  137 |   children: PropTypes.element,
  138 |   uriPrefix: PropTypes.string,```
vikashranjan commented 2 years ago

@suhailkakar any help? I am facing the above issue. I am following this tutorial https://medusajs.com/blog/creating-react-native-ecommerce-app-with-medusa

suhailkakar commented 2 years ago

Hey @vikashranjan

Can you please share the steps to reproduce the above behavior?

vikashranjan commented 2 years ago

@suhailkakar I followed the steps in the tutorial https://medusajs.com/blog/creating-react-native-ecommerce-app-with-medusa. After "Install Dependencies" I used the code in this repo. I get the above error when I run the app. Node Version: v16.16.0 OS:Mac Os/ Ubuntu 20.04.2 LTS NPM Version : 8.11.0

jore731 commented 1 year ago

The issue here is that ViewPropTypes has been deprecated but some of the dependencies are not up to date (some of them updated longer than 2 years ago already...)

Using the same package.json should work, it does to me, but if you have a different react/react-native version then you might face this problem.