-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
amd-dependency path not resolving when... #7756
Comments
So
And
So each file's parent is a sibling of the other. Wouldn't you want /// <amd-dependency path="./D/Company" name="Company" /> |
Ah yes, thanks. In this example (due to a typo) that would be correct. In our 'real' code, it looks something like: |
do you use |
No, I didn't use |
@kabua is this still an issue? can you share the project? |
I would love too but I have a very tight deal-line and then I'm on vacation, I'll be back the last week of June, at which point I can create something for you. thanks. |
any news? |
I just found out yesterday that 2.0 has finally been released. As soon as I can wrap up several items in my plate, I plan on revisiting this issue. |
TypeScript Version:
1.8.6.0
Module System
AMD
Background
We have a common project (let's call it WebUtils) located at
c:\repos\WebUtils
. And a ts file located atc:\repos\WebUtils\Libs\A\B\C\Person.ts
. AndPerson.ts
requires a legacy file calledCompany.js
which is located atc:\repos\WebUtils\Libs\A\B\D\Company.js
.Therefore, within
Person.ts
is a amd-dependency directive like so:/// <amd-dependency path="./D/Company" name="Company" />
When we compile the WebUtils project everything builds just fine.
Next, in our application (let's say it is located at
c:\repos\App1
) we have another ts file which is located atc:\repos\App1\Spa\main.ts
which 'requires' thePerson.ts
file from WebUtils.After trying several approaches and reading several issues (like: #2338, and #293 to name a few) it appears that the correct way to reference
Person.ts
would be like this:import Person = require("../../../WebUtils/Libs/A/B/C/Person");
Which resolves just fine. However, when we build App1 the compiler tries to compile Person.ts it can't find
Company
.Expected behavior:
To be able to resolve the amd-dependency directive relative path of ".\D\Company" based upon the current file's location that is being compiled.
Actual behavior:
Either a) the amd-dependency is being ignored or b) The relative path is not being honored correctly.
Notes:
The text was updated successfully, but these errors were encountered: