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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
JB_guide
Frequent Visitor

pbiviz package TYPESCRIPT error

Hi everyone,

 

I'm trying to make a custom visual, but when I run pbiviz package

 

I have few errors :

 

info Building visual...
error TYPESCRIPT C:/Users/jean-baptiste.guide/node_modules/@types/d3-dsv/index.d.ts : (159,60) '=' expected.
error TYPESCRIPT C:/Users/jean-baptiste.guide/node_modules/@types/d3-dsv/index.d.ts : (169,64) '=' expected.
error TYPESCRIPT C:/Users/jean-baptiste.guide/node_modules/@types/d3-dsv/index.d.ts : (186,46) '=' expected.
error TYPESCRIPT C:/Users/jean-baptiste.guide/node_modules/@types/d3-dsv/index.d.ts : (195,44) '=' expected.
error TYPESCRIPT C:/Users/jean-baptiste.guide/node_modules/@types/d3-dsv/index.d.ts : (300,60) '=' expected.
error TYPESCRIPT C:/Users/jean-baptiste.guide/node_modules/@types/d3-dsv/index.d.ts : (310,64) '=' expected.
error TYPESCRIPT C:/Users/jean-baptiste.guide/node_modules/@types/d3-dsv/index.d.ts : (327,46) '=' expected.
error TYPESCRIPT C:/Users/jean-baptiste.guide/node_modules/@types/d3-dsv/index.d.ts : (336,44) '=' expected.
error TYPESCRIPT C:/Users/jean-baptiste.guide/node_modules/@types/d3-dsv/index.d.ts : (435,45) '=' expected.
error TYPESCRIPT C:/Users/jean-baptiste.guide/node_modules/@types/d3-dsv/index.d.ts : (444,49) '=' expected.
error TYPESCRIPT C:/Users/jean-baptiste.guide/node_modules/@types/d3-dsv/index.d.ts : (457,31) '=' expected.
error TYPESCRIPT C:/Users/jean-baptiste.guide/node_modules/@types/d3-dsv/index.d.ts : (466,29) '=' expected.
error TYPESCRIPT C:/Users/jean-baptiste.guide/node_modules/@types/d3-dsv/index.d.ts : (493,46) '=' expected.
error TYPESCRIPT C:/Users/jean-baptiste.guide/node_modules/@types/d3-scale/index.d.ts : (38,68) ';' expected.
error TYPESCRIPT C:/Users/jean-baptiste.guide/node_modules/@types/d3-scale/index.d.ts : (2288,19) ';' expected.
error TYPESCRIPT C:/Users/jean-baptiste.guide/node_modules/@types/d3-scale/index.d.ts : (2288,27) Property or signature expected.
error TYPESCRIPT C:/Users/jean-baptiste.guide/node_modules/@types/d3-scale/index.d.ts : (2289,9) Declaration or statement
expected.
error TYPESCRIPT C:/Users/jean-baptiste.guide/node_modules/@types/d3-scale/index.d.ts : (2290,9) '(' expected.
error TYPESCRIPT C:/Users/jean-baptiste.guide/node_modules/@types/d3-scale/index.d.ts : (2290,50) '(' expected.
error TYPESCRIPT C:/Users/jean-baptiste.guide/node_modules/@types/d3-scale/index.d.ts : (2295,11) ';' expected.
error TYPESCRIPT C:/Users/jean-baptiste.guide/node_modules/@types/d3-scale/index.d.ts : (2296,1) Declaration or statement
expected.

 

I don't have d3 libs installed in my package.json :

 

{
  "name""powerbi_forgeviewer_visual",
  "dependencies": {
    "jquery""^3.5.1",
    "powerbi-visuals-utils-dataviewutils""1.2.0"
  },
  "devDependencies": {
    "@types/forge-viewer""^7.31.0",
    "@types/jquery""^3.5.1",
    "@types/node""12.0.0"
  }
}
 
Neither reference to any d3 libs in all my project.
 
Do you have any clue about those errors ?
 
Thanks, JB.
1 ACCEPTED SOLUTION

Hello,

 

I find d3 libs install in an unexpected place, I delete them and it work.

View solution in original post

5 REPLIES 5
v-shex-msft
Community Support
Community Support

HI @JB_guide,

AS the document said, the d3 library seems required in custom visual design. If you do not include any d3 libraries, have you enabled the d3 javascript library in your project?

Tutorial: Develop a Power BI circle card visual#modify-the-visuals-file 
Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Hello,

 

I find d3 libs install in an unexpected place, I delete them and it work.

Hi! i am having the same error. I am also using the same project.

Where did you find the wrong installed d3 libraries?

Hi, in the error message you can find where it is installed : C:/Users/jean-baptiste.guide/node_modules/@types/d3-dsv/index.d.ts for me.

You know where to delete librairies directly when you have the path.
Nice idea to tag me @v-shex-msft, I didn't have a notification with the message of @gmmanfredi.

HI @JB_guide,

According to your discretion, it seems related to d3 library initialization. I'm glad to hear you find the reason and fix it. I think they should help others who faced similar issues.
Regards,
Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.