Skip to content
This repository has been archived by the owner on Jul 2, 2022. It is now read-only.

Cannot run npm start #107

Closed
tthdvd opened this issue Feb 20, 2019 · 4 comments
Closed

Cannot run npm start #107

tthdvd opened this issue Feb 20, 2019 · 4 comments

Comments

@tthdvd
Copy link

tthdvd commented Feb 20, 2019

Describe the bug
When i try to run npm start failed to compile. I completed the installation steps using npm not yarn regarding to: https://medium.com/red-gold/create-social-network-by-react-js-fe60010a32e6

To Reproduce
Steps to reproduce the behavior:

  1. Go to root folder
  2. run npm start

Additional context
The error:

react-social-network/node_modules/connected-react-router/index.d.ts
(4,12): Module '"../@types/react-redux"' has no exported member 'ReactReduxContextValue'.
@thierry-tct
Copy link

Hello, I had the same issue.
This was fixed when I upgraded @types/react-redux to last version with

npm install --save @types/react-redux@7.0.1

@kapilip
Copy link
Contributor

kapilip commented Mar 14, 2019

@tthdvd You can fix it using yarn instead of npm i.e. use yarn install followed by yarn start. Actually npm start uses typescript 3.3.333 which breaks the older version of react-redux.
You can also upgrade the react-redux to 7.0.1 as mentioned by @thierry-tct to resolve this issue.

@tthdvd
Copy link
Author

tthdvd commented Mar 14, 2019

yarn install solved the problem

@Qolzam
Copy link
Member

Qolzam commented Mar 15, 2019

The problem is solved so I close here. However about the problem with npm I will update with version 0.7.0 #109

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

No branches or pull requests

4 participants