cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Mi2n Member
Member

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

Accepted Solutions
Mi2n Member
Member

Re: Cannot find namespace 'D3'

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 Member
Member

Re: Cannot find namespace 'D3'

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

Highlighted
Community Support Team
Community Support Team

Re: Cannot find namespace 'D3'

@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
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Top Kudoed Authors
Users Online
Currently online: 140 members 1,610 guests
Please welcome our newest community members: