Module not found: Can’t resolve ‘redux’ in ‘C:UsersFrontEndSrcfrontendnode_modulesreact-reduxesconnect’

Hi everyone,

Another quick one. I’d installed react-redux but was running into the following error:

Failed to compile.

./node_modules/react-redux/es/connect/mapDispatchToProps.js
Module not found: Can’t resolve ‘redux’ in ‘C:UserssourcereposFrontEndSrcfrontendnode_modulesreact-reduxesconnect’

Fairly easy fix, you need redux as well as react-redux:

npm install –save redux

Once that’s done, it should all be working!

Cheers,
Chris


Posted

in

, ,

by

Comments

One response to “Module not found: Can’t resolve ‘redux’ in ‘C:UsersFrontEndSrcfrontendnode_modulesreact-reduxesconnect’”

  1. Ishani Avatar
    Ishani

    After adding redux also, it is giving the same error.
    What should I do for that?

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Create a website or blog at WordPress.com

%d bloggers like this: