-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Node.js-like module resolution doesn't follow parent paths #5102
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
Got it. When if I compile like this
doesn't work. But when if
works. |
looks like this is fixed in master. can you give |
Doesn't work for me https://github.com/heycalmdown/typescript-5102/tree/master |
Same issue with some angular2 users who put their |
should be handled by #5275 |
fixed in e811fec |
@alexeagle and @heycalmdown can you give tomorrow's |
Sure, I was waiting your go sign. |
When I have following environment
import m_p_e_m from 'my-proper-external-module'
)It couldn't resolve where the
my-proper-external-module
is.It should work according the proposal (#2338) and the source code(https://github.com/Microsoft/TypeScript/blob/b95e1ff6d8656693c80ac54a15893c3ad4859762/src/compiler/program.ts#L125).
I think it's come from by the
directory
which theloadModuleFromNodeModules
have is empty string. It is an empty so it can not follow recursively.Below is my
tsconfig.json
The text was updated successfully, but these errors were encountered: