Redux-form-material-ui: Import/no-unresolved

Created on 14 Aug 2016  路  3Comments  路  Source: erikras/redux-form-material-ui

Hello,

Can import react, material-ui et cetera but only importing redux-form-material-ui is giving me an eslint error.

import { TextField } from 'redux-form-material-ui';

'[eslint] Unable to resolve path to module 'redux-form-material-ui'. (import/no-unresolved)'

I have imported the npm package. My package.json is:
..... "redux": "3.5.2", "redux-form": "^6.0.0-rc.4", "redux-form-material-ui": "^4.0.1", .....

Not sure where to start looking and why only redux-form-material-ui is giving me this eslint error.

Most helpful comment

Solved it by using:
import TextField from 'redux-form-material-ui/lib/TextField';

All 3 comments

Solved it by using:
import TextField from 'redux-form-material-ui/lib/TextField';

Thanks! This helped me from ignoring rule

I'm using import { RadioButton, RadioButtonGroup } from 'redux-form-material-ui/lib/RadioButtonGroup'; and it still gives me that Unable to resolve module... error.
Any idea?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rspicer picture rspicer  路  7Comments

ilyador picture ilyador  路  4Comments

EssamTarik picture EssamTarik  路  3Comments

eL-HaXo picture eL-HaXo  路  5Comments

aislanmaia picture aislanmaia  路  6Comments