You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Chained module resolution during npm install #6424
Install a TS module A, itself depending on another TS module B. npm flattens the dependency structure under node_modules and therefore the resolution algorithm implemented by #2338 is broken when module A is built.
The project includes dependency on module ts-lib2, which itself depends on ts-lib1. If you clone ts-lib2 by itself, and run npm install on it, it works. It's only when there's a chained dependency (with npm flattening the modules) that the problem occurs.
Assumptions
Each project is built as an npm postinstall step. I couldn't find out if there is a recommended way to accomplish this differently.
it looks like this issue is fixed in out latest bits, can you give a try to our nightly build (typescript@next) to see if you still can see this problem.
this issue was fixed in two PRs: #5275 and #5461. I've ported them into release-1.7 in #6441, pinging Mohamed Hegazy (@mhegazy) for his decision if it is safe to take these changes.
Activity
vladima commentedon Jan 9, 2016
it looks like this issue is fixed in out latest bits, can you give a try to our nightly build (
typescript@next) to see if you still can see this problem.erykwarren commentedon Jan 9, 2016
It works very nicely. Thanks Vladimir Matveev (@vladima).
erykwarren commentedon Jan 10, 2016
Vladimir Matveev (@vladima) Is there anyway to port this fix in 1.7? If we have to wait for 1.8, what's the workaround?
vladima commentedon Jan 11, 2016
this issue was fixed in two PRs: #5275 and #5461. I've ported them into release-1.7 in #6441, pinging Mohamed Hegazy (@mhegazy) for his decision if it is safe to take these changes.
erykwarren commentedon Jan 12, 2016
Vladimir Matveev (@vladima) Thanks for pushing this. However, I tried building a custom TS with the patch in 6441, and it didn't solve the issue....
erykwarren commentedon Jan 12, 2016
Vladimir Matveev (@vladima) Forget what I wrote, my test was wrong. It works! Thanks a lot.