Forum Discussion
How Do I Compile powerbiclient Jupyter Widget
- 1 year ago
Install a local TypeScript version (don't rely on global
tsc)In the project directory (inside
powerbi-jupyter-1/😞
npm install typescript@latest --save-devCheck that the correct
tscis used when running scriptsWhen you run
npm run build:lib, npm will automatically use the localnode_modules/.bin/tsc, NOT your globally installed old one — as long as local one exists.You can double-check by running:
npx tsc --versionRe-run the build
Now try:
npm run build:libDid I answer your question? Mark my post as a solution! Appreciate your Kudos !!
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 !!
- saviourofdp1 year agoAdvocate I
Ok thanks - this seems to have worked. I don't understand why it wouldn't work with the version of tsc that the author used to originally create the project, but hey thanks again.