Forum Discussion

saviourofdp's avatar
saviourofdp
Advocate I
1 year ago
Solved

How Do I Compile powerbiclient Jupyter Widget

I'm trying to contribute to powerbi-jupyter , following the Contribution Guidelines. After cloning the project, I'm failing at the first hurdle with the following command, which just runs tsc   np...
  • johnbasha33's avatar
    1 year ago

    saviourofdp 

    Install a local TypeScript version (don't rely on global tsc)

    In the project directory (inside powerbi-jupyter-1/😞
    npm install typescript@latest --save-dev

    Check that the correct tsc is used when running scripts

    When you run npm run build:lib, npm will automatically use the local node_modules/.bin/tsc, NOT your globally installed old one — as long as local one exists.

    You can double-check by running:
    npx tsc --version

    Re-run the build

    Now try:
    npm run build:lib


    Did I answer your question? Mark my post as a solution! Appreciate your Kudos !!