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
Using declarationMap is causing unexpected errors #1464
Comments
@alan-agius4 did you get anywhere with this? I saw you created a PR, but the code doesn't seem to reflect the issue. Just to make sure, I'm trying to enable the declarationMap feature. |
I need to continue looking at this. Yeah the in the PR is to fix that issue. Since there are 2 compilation we only enable declarations for the 1st one. |
@alan-agius4: We really need this in our project, so I can help you take a look. Can you add your thoughts, and I'll go from there? |
I can add to this that the declaration maps also ends up in the wrong folder.
|
This issue came today again within our community, it's getting more and more important to use a library without relying on the source project. @alan-agius4 wondering if you see capacity to move this forward? |
hi, @alan-agius4 . do you have a solution for that for now? |
This is currently a low-priority feature. |
While I understand being busy, this feature is very important for mono-repo development. Without this working, VS code ends up loading the Example layout:
In the If I understand this right, having the |
This issue has been automatically locked due to inactivity. |
Type of Issue
(perhaps it's an unsupported ts feature, and we should threat this as a feature request)
Description
I've tried to use the tsconfig property
declarationMap
for getting sources with generated libraries. (see https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-9.html#new---declarationmap). Enabling this flag on a project in an angular-cli generated project (either ng 8 orv9.0.0-rc.4
), causes the following issues:The message indicates that I should add 'declaration' or 'composite' as well. In the default generated
tsconfig.lib.json
, the declaration is actually set to true. I've tried to enable the 'composite' flag as well, but this is causing other issues.How To Reproduce
ng new mywebsite
)ng g library myproject
)declarationMap
toprojects/myproject/tsconfig.lib.json
ng build myproject
)Expected Behaviour
I was expecting that
.d.ts.map
files would be generatedVersion Information
The text was updated successfully, but these errors were encountered: