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.
Hi Ravikumar,
In the second dashboard, if you go to Settings, does the RequireJs support is enabled?
Best regards
Yes, It is enabled.
I understood the problem.
First dashboard is without RequireJs support while the second one is with RequireJs.
Thank you.