https://github.com/caub/eslint-import-resolver-webpack-bug
https://github.com/caub/eslint-import-resolver-webpack-bug
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/caub/eslint-import-resolver-webpack-bug
- Owner: caub
- Created: 2019-02-21T07:12:04.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-21T16:20:16.000Z (over 7 years ago)
- Last Synced: 2025-03-22T22:17:56.571Z (over 1 year ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
```
npx eslint .
Error resolving webpackConfig { Error: Cannot find module '/home/caub/dev/eslint-import-resolver-webpack-bug/frontend/frontend/config/webpack.config.dev.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:613:15)
....
```
changing `"config": "./frontend/config/webpack.config.dev.js"` to `"config": "./config/webpack.config.dev.js"` in `.eslintrc` make `npx eslint .` work, but it's confusing since we run eslint from the root directory, not from frontend/. and also even after that change, it'll fail in more complex cases (I'll try push one)