question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem to upgrade the react version to 16.4

See original GitHub issue

Please describe the problem you think should be solved This could be a very basic question 😃

I need to use the react-select component in the desktop app. There is a known type issue which gets fixed in @types/react 16.4.13 https://github.com/JedWatson/react-select/issues/2860 So I have to upgrade the react version in desktop in order to get the fix. I use yarn upgrade to upgrade the react version and @types/react version, but after I do this, I get tons of errors when doing yarn install.

Here are the commands I ran to reproduce the problem:

  1. cd into the app folder, and run yarn upgrade react@16.4.2
  2. cd to the root folder, and run yarn upgrade @types/react@16.4.18
  3. run yarn install

I get tons of errors similar to: ` node_modules/@types/react/index.d.ts:2317:47 - error TS2694: Namespace ‘“C:/Users/Scott/Projects/GitHub/github-desktop/node_modules/@types/prop-types/index”’ has no exported member ‘InferProps’.

2317 ? MergePropTypes<P, PropTypes.InferProps<T>> `

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
shiftkeycommented, Dec 17, 2018

I’m still investigating how to get around it in the meantime.

@outofambit not sure if you’re still investigating this, but check out this commit which works in dev mode on my machine: 7e8f7f170

1reaction
outofambitcommented, Dec 12, 2018

It looks like we’re running into this issue with the typings: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/28015. It looks like a fix has just been merged, but not released yet. I’m still investigating how to get around it in the meantime.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Problem to upgrade the react version to 16.4 #6405 - GitHub
So I have to upgrade the react version in desktop in order to get the fix. I use yarn upgrade to upgrade the...
Read more >
Upgrading React version and it's dependencies by reading ...
To update to a new major version all the packages, install the npm-check-updates package globally: npm install -g npm-check-updates · Run the ...
Read more >
React v17.0 – React Blog
For most apps, upgrading all at once is still the best solution. Loading two versions of React — even if one of them...
Read more >
How to upgrade version 16 to 18 in react existing project
How to upgrade version 16 to 18 in react existing project · 1.Delete previous nodejs & install latest version node.js -18.3.0 · 2.Delete...
Read more >
react-version | Next.js
Why This Error Occurred. Your project is using an old version of react or react-dom that does not meet the suggested minimum version...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found