Giter Club home page Giter Club logo

Comments (4)

raananzvi avatar raananzvi commented on May 22, 2024 1

After further looking at the code, your hint was correct, our command line tool is trying to validate that you are building the correct PowerBI-visuals.d.ts file (from the correct API version).
The best workaround for now is to keep the files list with the line for PowerBI-visuals.d.ts file and exclude the ".api" folder. This will make sure you get what you want and keep the toolset happy.

We can try and mitigate this issue in future releases, but I'm not sure if we can do this easily.

from powerbi-visuals-tools.

raananzvi avatar raananzvi commented on May 22, 2024

Hi,

Are you sure the two things are related? I just created a new empty visual with the CLI tools, added the exclude property to the tsconfig.json file:
{ "compilerOptions": { "allowJs": true, "emitDecoratorMetadata": true, "experimentalDecorators": true, "target": "ES5", "sourceMap": true, "out": "./.tmp/build/visual.js" }, "files": [ ".api/v1.1.0/PowerBI-visuals.d.ts", "src/visual.ts" ], "exclude": [ "node_modules", "wwwroot" ] }

And the packaging worked fine.
Try to validate that you are running the package command from the right folder (you should run it from the root folder of your visual)

from powerbi-visuals-tools.

Mcburn avatar Mcburn commented on May 22, 2024

Hey Raananzvi,

as mentioned here: http://www.typescriptlang.org/docs/handbook/tsconfig-json.html
I can use the exclude and include feature without the files feature.

When i add the files array to the tsconfig pbiviz is building my package. But it ignore my include or exclude array.

Typescript 2.0 is very young, so maybe pbiviz do not supported yet?

from powerbi-visuals-tools.

Mcburn avatar Mcburn commented on May 22, 2024

I will try this out.
In the moment i get the feeling i really understand the pbiviz environment.

So iám happy i can help you to improve powerbi-visual-tools.

Thank you very much for your answer and your time.

from powerbi-visuals-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.