Closed
Description
While my webpack config works just fine, I am getting a lot of linter errors with the same config:
resolve: {
extensions: ["", ".js", ".jsx"],
modulesDirectories: [
VENDOR_DIR,
SRC_DIR,
path.join(__dirname, "node_modules"),
],
alias: {
vendor: VENDOR_DIR,
},
},
eslint prints erros for each of my files:
1:19 error Unable to resolve path to module 'react' import/no-unresolved
2:24 error Unable to resolve path to module 'inline-style-prefix-all' import/no-unresolved
7:18 error Unable to resolve path to module 'components/Link' import/no-unresolved
8:30 error Unable to resolve path to module 'styles/colors' import/no-unresolved
10:21 error Unable to resolve path to module 'components/Divider' import/no-unresolved
11:17 error Unable to resolve path to module 'components/Div' import/no-unresolved
my .eslintrc
looks like this:
settings:
react:
version: "0.14.8"
import/resolver:
webpack:
config: "webpack.config.js"
But also import/resolver: webpack
reports the same errors