Node Services Error When Load First Time #1141

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

Originally created by @hendrathings on 1/5/2017

Hi, I got throw error "Microsoft.AspNetCore.NodeServices[0] EXCEPTION: Cannot read property 'querySelector' of undefined" and so on.

My project use Asp Net Core + Angular JS. this throw error on library D3 query selector. I had struggle to find out this and eventually I realize the web load on the first time throw this error.

Ex:

  1. I create 'A' component chart base on NVD3.
  2. then I load on 'A' component at home
  3. run localhost:5000/home
  4. I got this error.

I have try using lazy load, async component, dynamic component that always throw error. This is doesn't make sense because I have try on angular 2 with webpack-server-dev working component and also put component on different page and working as well.

I thought was d3 lib or types issue, but it wasn't. because it was working without asp.net core.

Please help or suggest.

Thanks.

*Originally created by @hendrathings on 1/5/2017* Hi, I got throw error "Microsoft.AspNetCore.NodeServices[0] EXCEPTION: Cannot read property 'querySelector' of undefined" and so on. My project use Asp Net Core + Angular JS. this throw error on library D3 query selector. I had struggle to find out this and eventually I realize the web load on the first time throw this error. Ex: 1. I create 'A' component chart base on NVD3. 2. then I load on 'A' component at home 3. run localhost:5000/home 4. I got this error. I have try using lazy load, async component, dynamic component that always throw error. This is doesn't make sense because I have try on angular 2 with webpack-server-dev working component and also put component on different page and working as well. I thought was d3 lib or types issue, but it wasn't. because it was working without asp.net core. Please help or suggest. Thanks.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#1141
No description provided.