I am using webpack's aliases in my project. Everything works fine in my original project, but when I clone the project, I get error from import/no-unresolved
for my webpack aliases:
Casing of $js/Controller does not match the underlying filesystem import/no-unresolved
what makes it more interesting is that my project works fine. import/no-unresolved
seems to send show false error.
For more details, I am adding few links: .eslintrc.js , webpack.config.babel.js , Link to my Repo
please let me know if you need anything else.
I found the solution. I installed eslint-import-resolver-webpack
in order to make Webpack aliases work with eslint resolver. Here is the command to install the plugin:
npm install eslint-import-resolver-webpack --save-dev
Here is the link to the repo
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.