Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Mi2n
Microsoft Employee
Microsoft Employee

Cannot find namespace 'D3'

Hi All,

 

I am new to the Power BI visuals, and I am trying to build the basic BarChart from the below link.

 

https://github.com/Microsoft/PowerBI-visuals

 

Now, the problem is, when I use the command "pbiviz start", I get the below error.

 

PS C:\Users\<user-name>\barChart> pbiviz start
info Building visual...
error TYPESCRIPT /src/barChart.ts : (27,22) Cannot find namespace 'd3'.
error TYPESCRIPT /src/barChart.ts : (29,36) Cannot find namespace 'd3'.
error TYPESCRIPT /src/barChart.ts : (30,31) Cannot find namespace 'd3'.
error TYPESCRIPT /src/barChart.ts : (31,23) Cannot find namespace 'd3'.
error TYPESCRIPT /src/barChart.ts : (47,34) Cannot find name 'd3'.
error TYPESCRIPT /src/barChart.ts : (88,26) Cannot find name 'd3'.
error TYPESCRIPT /src/barChart.ts : (99,26) Cannot find name 'd3'.
error TYPESCRIPT /src/barChart.ts : (103,26) Cannot find name 'd3'.

 

Can anyone help me to resolve this issue?

 

Regards,

Mi2n

1 ACCEPTED SOLUTION
Mi2n
Microsoft Employee
Microsoft Employee

Following the steps in the below link solved the issue.

 

http://blog.jongallant.com/2016/11/pbiviz-12-d3-35-reference/

 

Thanks,

Mi2n

View solution in original post

2 REPLIES 2
Mi2n
Microsoft Employee
Microsoft Employee

Following the steps in the below link solved the issue.

 

http://blog.jongallant.com/2016/11/pbiviz-12-d3-35-reference/

 

Thanks,

Mi2n

@Mi2n,

 

Glad to hear that you've solved this problem and thank you for sharing the solution. This might be beneficial to other community members, you could help mark it as answer.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.