Reselect: IDE cannot resolve import from reselect

Created on 12 Dec 2017  路  2Comments  路  Source: reduxjs/reselect

I am using Webstorm 2017.3 and I cannot fix an issue with import form reselect:
Cannot resolve symbol 'createStructuredSelector' when doing:

import { createStructuredSelector } from 'reselect';

I found similar issues on the the web concerning other packages (react-native for instance) so I guess it is a package related issue.

Everything works perfectly but this warning in the IDE is a bit annoying.
image

Most helpful comment

You can use 'reselect/es'.

All 2 comments

You can use 'reselect/es'.

Ahh thanks 209. It can't find the createStructuredSelector function because there's no index.js file in the directory, hence "reselect/es"

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vjau picture vjau  路  5Comments

sarink picture sarink  路  4Comments

alvaromb picture alvaromb  路  5Comments

ericj17 picture ericj17  路  5Comments

jEnbuska picture jEnbuska  路  6Comments