Pentaho

 View Only

 External JS library behaviour in CDE

  • Pentaho
  • Kettle
  • Pentaho
  • Pentaho Data Integration PDI
Ravikumar Kamma's profile image
Ravikumar Kamma posted 02-15-2019 16:06

Hi All,

I am using Pentaho 8.2 on windows 10.

I have two CDE dashboard. Both are deployed on same server.

I am calling momentjs library in both of them.

Dashboard one works without any problem.

Dashboard two gives an error for require.js:8 Uncaught Error: Mismatched anonymous define() module:

When I configure dashboard two with requireJS it works fine.

requirejs.config({

    appDir: ".",

    baseUrl: "js",

    paths: {

     'moment': ['//cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.1/moment.min'],

                      }

   });

Need to understand why there is different behavior for the same library.


#Kettle
#Pentaho
#PentahoDataIntegrationPDI
Paulo Pires's profile image
Paulo Pires

Hi Ravikumar,

In the second dashboard, if you go to Settings, does the RequireJs support is enabled?

Best regards

Ravikumar Kamma's profile image
Ravikumar Kamma

Yes, It is enabled.

I understood the problem.

First dashboard is without RequireJs support while the second one is with RequireJs.

Thank you.