Use Kendo in Power BI Custom Visual : getEmitOutput is not a function

5 posts, 0 answers
  1. Patrick
    Patrick avatar
    29 posts
    Member since:
    Apr 2014

    Posted 17 May Link to this post

    I would like to use kendo in powerbi custom visuals using the powerbi dev tool at https://xxx.powerbi.com/devTools. When I try to include the contents of 1) kendo.all.js 2) kendo.all.d.ts, I receive the error message in power bi:

    angular.min.js:116 TypeError: d.getModel(...).getMode(...).getEmitOutput is not a function at Object.s [as compile] (extensibility.min.js:3) at a.compile (extensibility.min.js:1) at extensibility.min.js:1 at m.$emit (angular.min.js:144) at m.t.compile (extensibility.min.js:1) at fn (eval at <anonymous> (angular.min.js:1), <anonymous>:4:212) at b (angular.min.js:124) at e (angular.min.js:268) at m.$eval (angular.min.js:142) at m.$apply (angular.min.js:143)

  2. Alex Hajigeorgieva
    Admin
    Alex Hajigeorgieva avatar
    117 posts

    Posted 19 May Link to this post

    Hi Patrick,

    The provided stack trace is pointing towards getEmitOutput(). This function is related to TypeScript. My initial suggestion would be to remove kendo.all.d.ts. and check if the issue still remains. 

    To help me establish what could be causing the error, please provide more details about the way you are using Power BI:

    - Which product are you using?
    - Is it Desktop or Mobile Version?
    - Are you able to reproduce the problem in a simplified web page that is outside the Power BI environment?
    - ...include any relevant details  

    Kind Regards,
    Alex
    Telerik 
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Kendo UI is VS 2017 Ready
  4. Patrick
    Patrick avatar
    29 posts
    Member since:
    Apr 2014

    Posted 20 May in reply to Alex Hajigeorgieva Link to this post

    The issue only occurs when I try to use Kendo.

    I am using power bi as a product.  They have a developer tool where you can add custom visuals.

    It is a web / desktop app.

    I only have this error in the power bi environment.

    Powerbi is a typescript application so I need the typescript to integrate.

     

  5. Patrick
    Patrick avatar
    29 posts
    Member since:
    Apr 2014

    Posted 23 May in reply to Patrick Link to this post

    As an update, I was able to get this to work but... without the full kendo ui.  I only included a very small subset of files needed for multiselect from the opensource core.

    This gist of the work around is here: https://gist.github.com/jcbowyer/5df55d4758a7614ca08d71eaf640fc57

    I still would like to determine how to include the full kendo library rather than just the opensource components.

  6. Alex Hajigeorgieva
    Admin
    Alex Hajigeorgieva avatar
    117 posts

    Posted 25 May Link to this post

    Hello Patrick,

    I am glad that you managed to find a custom solution to integrate Kendo UI Core with Microsoft Power BI.

    It looks like a possible approach for your scenario is to import the widgets one by one as described in the guide here:

    https://powerbi.microsoft.com/en-us/documentation/powerbi-custom-visuals-getting-started-with-developer-tools/

    As a side note, I would suggest to try using the Kendo UI TypeScript definitions outside of the Microsoft Power BI environment. If the problem is not reproducing, I would recommend to forward the case to the Microsoft Power BI Support team as they will provide more relevant insight regarding the environment, since we are not specialists in the area.

    Kind

    Regards,
    Alex
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
Kendo UI is VS 2017 Ready