Ravikumar Kamma

External JS library behaviour in CDE

Discussion created by Ravikumar Kamma on Feb 15, 2019
Latest reply on Feb 15, 2019 by Ravikumar Kamma

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.


    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.