Open rjanik opened 6 years ago
Did you run the command: node .\\node_modules\\uglify-js\\bin\\uglifyjs --self -o .\\node_modules\\uglify-js\\lib\\uglify-js.js
to create the correct UglifyJS
file
And regarding the 'launchUrl' error, what version of pbiviz
do you use?
Sorry for the long delay getting back. I did run the node command and it appeared to create the file. pbiviz version is 1.11.3.
I have the same issue. Was this resolved? I have pbiviz version 1.12.0
not a Typescript expert however the following fix helped me solve the errors
error TYPESCRIPT /src/visual.ts : (68,44) Cannot find namespace 'UglifyJS'. error TYPESCRIPT /src/visual.ts : (660,26) Cannot find name 'UglifyJS'.
In \node_modules\@types\uglify-js\index.d.ts add the following line
export as namespace UglifyJS;
Hi, have you resolve the issue with launchUrl?
Thanks. Alexis
I managed to get the build working with the following steps:
disclaimer: tested with a build that uses D3 V 5.7.0
After building with your instructions pbiviz start fails. Sorry if this something straightforward first time building a pbi visual.
`>pbiviz start
info Building visual...
error TYPESCRIPT /src/visual.ts : (66,44) Cannot find namespace 'UglifyJS'.
error TYPESCRIPT /src/visual.ts : (617,31) Property 'launchUrl' does not exist on type 'IVisualHost'.
error TYPESCRIPT /src/visual.ts : (658,26) Cannot find name 'UglifyJS'.`