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

Recent update Bug #45

Closed
ghost opened this issue Oct 11, 2017 · 2 comments
Closed

Recent update Bug #45

ghost opened this issue Oct 11, 2017 · 2 comments

Comments

@ghost
Copy link

ghost commented Oct 11, 2017

Hi, I've seen that you updated your project.

I have couple of problems while launching my project such as "No dimension set for key window"
I don't know what's happening .

And another previous one which said :

var PropTypes = require('react/lib/ReactPropTypes');

Any help would be great.

Thanks

Michael

@achuvm
Copy link
Collaborator

achuvm commented Oct 11, 2017

Hi @Zirconiumirish,

The first error you have seems to be a React Native upgrade issue as reported here:
facebook/react-native#13758

Some things you can try:

  • wipe out and reinstall your node_modules
  • clear watchman cache: watchman watch-del-all
  • restart your packager server w/ reset-cache option:npm start -- --reset-cache

As for your second issue, React/React Native deprecated ReactPropTypes and instead uses the prop-types npm module.

  1. make sure you have the prop-types module/directory in your node_modules, if not, try reinstall node_modules with npm install (prop-types is a dependency of RN 47.2).
  2. replace var PropTypes = require('react/lib/ReactPropTypes'); with import PropTypes from 'prop-types';

Let us know if that doesn't work for you,

Andy

@ghost
Copy link
Author

ghost commented Oct 12, 2017

All done thanks for your information Andy =)

@ghost ghost closed this as completed Oct 12, 2017
This issue was closed.
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

1 participant