-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[import/no-unresolved] not working for index.js #1292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
How does |
due to webpack aliasing and module paths: |
No one wanna write awful |
I do - I think they're a correct and proper indication that I have code that needs extracting into a separate package :-) In this case, tho, the error message is warning you about capitalization. If you import from |
utils/index.js and utils/index work |
Yes, but package can be local (that is well-known practice called Vendoring as I know), dependency path variable is common computer engineering practice too |
You can and should vendor into node_modules itself and use However, the |
That's interesting solution... We'll think about it. I have default macOS config. MacOS suggests case-insensitive FS setting by default. |
really we're think that both tricks with moving all our directories into node_modules, all our friends use absolute paths as single useful way to fight the path complexity (simplify refactorings, decrease code blowing and etc.) I can help fix that maybe, if you can help with details |
Currently I disabled caseSensitive option, but it's not ideal solution for us. True-negative checks with |
Using absolute paths tends to couple things to specific developer’s machines (since all your files should only be inside There’s definitely a bug here, and yes it’d be great to get a PR for it. |
Excuse my inaccuracy I'm not about |
Any news on this? We encountered the same issue in our project. |
How do people solve this issue as of today? |
@OoDeLally, I fixed it for most cases with that workaround: but my project has not case mismatches. so I wanna to get |
usually I'd like to write code like |
similar but different: #1124
file struct:
utils/index.js:
components/Foo.jsx:
.eslintrc:
webpack.config.js:
versions: all are latest
The text was updated successfully, but these errors were encountered: