I found this very helpful github project which is a proof of concept to make angular work in an extension of Azure DevOps. Everything works fine until i want to use the build in rest api's like "VSS/Service" or "TFS/VersionControl/GitRestClient". I found out that when i add to the includes from the tsconfig.app.json my visual studio codium ide recognizes the types in my component with import { VssService } from 'VSS/Service';
but when i try to build the file with ng build
the following error comes up:
Module not found: Error: Can't resolve 'VSS/Service'
I tried to add to angular.json
scripts[]
the VSS.SDK.min.js
file which didn't change anything.
I see that over the init-vss-angular.js
VSS gets initialized but i have no idea how to get the rest service to use in my angular app
regads
from Angular10 DevOps Extension RestApi
No comments:
Post a Comment