Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while running #1

Open
vikashranjan opened this issue Jul 20, 2022 · 4 comments
Open

Error while running #1

vikashranjan opened this issue Jul 20, 2022 · 4 comments

Comments

@vikashranjan
Copy link

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
Copy link
Author

@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
Copy link
Owner

Hey @vikashranjan

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

@vikashranjan
Copy link
Author

@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
Copy link

jore731 commented Jan 20, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants