locked
Build: Cannot find module 'angular2/core'

    Question

  • While trying to build the .net and front end Angular project in VSTS, getting these Angular module not found error.
    However i added npm install taske in build, also getting only these errors,

     ##[error]src\-----.---------.WebApplication\wwwroot\assets\app.component.ts(1,69): Error TS2307: Build: Cannot find module 'angular2/core'.
    2016-05-19T11:11:35.8269002Z      1>wwwroot\assets\app.component.ts(1,69): error TS2307: Build: Cannot find module 'angular2/core'. [C:\a\1\s\src\-----.---------.WebApplication\-----.---------.WebApplication.xproj]
    2016-05-19T11:11:35.8278997Z

    ##[error]src\-----.---------.WebApplication\wwwroot\assets\app.component.ts(10,66): Error TS2307: Build: Cannot find module 'angular2/router'.
    2016-05-19T11:11:35.8290367Z      1>wwwroot\assets\app.component.ts(10,66): error TS2307: Build: Cannot find module 'angular2/router'. [C:\a\1\s\src\-----.---------.WebApplication\-----.---------.WebApplication.xproj]
    2016-05-19T11:11:35.8298986Z

    ##[error]src\-----.---------.WebApplication\wwwroot\assets\app.component.ts(12,30): Error TS2307: Build: Cannot find module 'angular2/http'.
    2016-05-19T11:11:35.8308981Z      1>wwwroot\assets\app.component.ts(12,30): error TS2307: Build: Cannot find module 'angular2/http'. [C:\a\1\s\src\-----.---------.WebApplication\-----.---------.WebApplication.xproj]


    Thursday, May 19, 2016 11:28 AM

All replies

  • Hi VireshMathapati13,

    According to your description, your issue is related to VSTS build, the Visual Studio Team Services forum is the better place for this issue and I will move it there for you.

    Regards

    Starain


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Friday, May 20, 2016 7:08 AM
  • Thank you Starain for you help.

    Hope I get solution there.....

    Friday, May 20, 2016 10:55 AM
  • Hey VireshMathapati13,

    I have the same issue do you find the solution 

    Thx :)

    Monday, June 12, 2017 8:30 AM