Closed jgoux closed 4 years ago
I think I might've changed the logic awhile ago and never got around to pushing it. :man_shrugging: Update and try again, and if that doesn't work, do let me know
I am using 1.10.1 and having the same issue.
Hmm, now that I'm looking over it, I don't think I completely understood the docs when it described the package root. I'll dive around in the parcel source code and see what it's actually referring to.
Aha!
// Tilde path. Resolve relative to nearest node_modules directory,
// or the project root - whichever comes first.
https://github.com/parcel-bundler/parcel/blob/v1.10.3/src/Resolver.js#L129
I was always going to the nearest node_modules
directory.
Let me know if you still have issues
Hello, sorry for the support related issue. 😅
I'm trying to use eslint-plugin-import but I'm failing at setting it up with parcel.
I added eslint-import-resolver-parcel as the resolver :
but when I do :
eslint src/
all my ~ paths are in error :7:30 error Unable to resolve path to module '~/components' import/no-unresolved
Did I miss something ? The project is building fine with parcel.
For the record I tried using
eslint-import-resolver-alias
which works fine :