"Microsoft.AspNetCore.NodeServices:Error: ERROR TypeError: Cannot read property 'length' of undefined" #169

Closed
opened 2025-08-09 17:15:16 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @najeebzohaib on 2/16/2018

Hi,

I've created an .Net Core Angular SPA template website with VS 2017. It has been working fine but since I've upgraded from .net core 1.1.4 to 2.0. I've done nothing but update the Nuget packages to use latest 2.0.x versions. Here's the error:

Microsoft.AspNetCore.NodeServices:Error: ERROR TypeError: Cannot read property 'length' of undefined
at Object.View_UserAvatarComponent_1._co [as updateDirectives] (ng:///AppModule/UserAvatarComponent.ngfactory.js:131:68)
at Object.updateDirectives (C:\Users\zohaib\Source\Repos\WORK Suite Cirrus\src\Application\ClientApp\dist\vendor.js:23644:72)
at checkAndUpdateView (C:\Users\zohaib\Source\Repos\WORK Suite Cirrus\src\Application\ClientApp\dist\vendor.js:23157:14)
at callViewAction (C:\Users\zohaib\Source\Repos\WORK Suite Cirrus\src\Application\ClientApp\dist\vendor.js:23525:21)
at execEmbeddedViewsAction (C:\Users\zohaib\Source\Repos\WORK Suite Cirrus\src\Application\ClientApp\dist\vendor.js:23483:17)
at checkAndUpdateView (C:\Users\zohaib\Source\Repos\WORK Suite Cirrus\src\Application\ClientApp\dist\vendor.js:23158:5)
at callViewAction (C:\Users\zohaib\Source\Repos\WORK Suite Cirrus\src\Application\ClientApp\dist\vendor.js:23525:21)
at execComponentViewsAction (C:\Users\zohaib\Source\Repos\WORK Suite Cirrus\src\Application\ClientApp\dist\vendor.js:23457:13)
at checkAndUpdateView (C:\Users\zohaib\Source\Repos\WORK Suite Cirrus\src\Application\ClientApp\dist\vendor.js:23163:5)
at callViewAction (C:\Users\zohaib\Source\Repos\WORK Suite Cirrus\src\Application\ClientApp\dist\vendor.js:23525:21)

*Originally created by @najeebzohaib on 2/16/2018* Hi, I've created an .Net Core Angular SPA template website with VS 2017. It has been working fine but since I've upgraded from .net core 1.1.4 to 2.0. I've done nothing but update the Nuget packages to use latest 2.0.x versions. Here's the error: Microsoft.AspNetCore.NodeServices:Error: ERROR TypeError: Cannot read property 'length' of undefined at Object.View_UserAvatarComponent_1._co [as updateDirectives] (ng:///AppModule/UserAvatarComponent.ngfactory.js:131:68) at Object.updateDirectives (C:\Users\zohaib\Source\Repos\WORK Suite Cirrus\src\Application\ClientApp\dist\vendor.js:23644:72) at checkAndUpdateView (C:\Users\zohaib\Source\Repos\WORK Suite Cirrus\src\Application\ClientApp\dist\vendor.js:23157:14) at callViewAction (C:\Users\zohaib\Source\Repos\WORK Suite Cirrus\src\Application\ClientApp\dist\vendor.js:23525:21) at execEmbeddedViewsAction (C:\Users\zohaib\Source\Repos\WORK Suite Cirrus\src\Application\ClientApp\dist\vendor.js:23483:17) at checkAndUpdateView (C:\Users\zohaib\Source\Repos\WORK Suite Cirrus\src\Application\ClientApp\dist\vendor.js:23158:5) at callViewAction (C:\Users\zohaib\Source\Repos\WORK Suite Cirrus\src\Application\ClientApp\dist\vendor.js:23525:21) at execComponentViewsAction (C:\Users\zohaib\Source\Repos\WORK Suite Cirrus\src\Application\ClientApp\dist\vendor.js:23457:13) at checkAndUpdateView (C:\Users\zohaib\Source\Repos\WORK Suite Cirrus\src\Application\ClientApp\dist\vendor.js:23163:5) at callViewAction (C:\Users\zohaib\Source\Repos\WORK Suite Cirrus\src\Application\ClientApp\dist\vendor.js:23525:21)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#169
No description provided.