I have tried to follow the DimpleJS recipe from the Om cookbook, but when running the production-built version of the code, the charts never render and I get (in stead) an “Uncaught TypeError: Cannot read property ‘Fd’ of undefined” error on the console. The only change I have done to the original code is wrapping the om/root expression in a main function (like the default one that’s generated) and adding a few dependencies as imports in index.html.
This is the source code that the Chrome debug console shows, and the error is supposed to be on line 86. In this particular example, I have simply moved the root statement outside the main function (no effect).
I have also made another variant using Google Charts that displays the same error (“Uncaught TypeError: Cannot read property ‘bg’ of undefined” on line 27).
The weirdest thing is that everything works fine in development mode!
Any help would be greatly appreciated.