(You) 6 Years Ago [...] Previously we have talked about how to create a soy portlet, how to use a 3rd party js lib(ChartJS) in SOY portlet, and how to use Liferay Service Builder to create a remote service(web service) in... [...] Read More Please sign in to reply. Reply as... Cancel
Abre Chase 6 Years Ago I pulled the source and am trying to get this working in Liferay 7 CE GA3, but I get the following JS error.Mismatched anonymous define() module: everything.jsp?browserId=other&themeId=classic_WAR_classictheme&colorSchemeId=01&minifierType=js&mi…:294 I had actually tried building a similar module but without using soy prior to pulling your code and testing it. I was seeing the same problem in my code, but it isn't much different than yours so that's not unexpected.Any ideas about what I might be missing here. Maybe the tutorial is missing some build / Gradle steps? Please sign in to reply. Reply as... Cancel Neil Jin Abre Chase 6 Years Ago Hi Abre, right, it doesn't work on GA3 . It works on CE GA4. Please sign in to reply. Reply as... Cancel Abre Chase Neil Jin 6 Years Ago I upgraded to CE GA4 and I still see the same problem.In my es.js file, if I remove the import then I don't see any errors.import Chart from 'chartjs-demo/js/Chart';BND file is placing the file in jar.Web-ContextPath: /chartjs-demoInclude-Resource: package.json,\ META-INF/resources/js/Chart.js = node_modules/chart.js/dist/Chart.jsThat's from the code that I wrote based on your example. However, I see the same problem using your code.Are there any configuration steps I might be missing? Please sign in to reply. Reply as... Cancel Abre Chase Abre Chase 6 Years Ago I was able to get my code working by setting the following property in portal-ext.propertiesjavascript.fast.load=falseWhy is this necessary? Please sign in to reply. Reply as... Cancel
Neil Jin Abre Chase 6 Years Ago Hi Abre, right, it doesn't work on GA3 . It works on CE GA4. Please sign in to reply. Reply as... Cancel Abre Chase Neil Jin 6 Years Ago I upgraded to CE GA4 and I still see the same problem.In my es.js file, if I remove the import then I don't see any errors.import Chart from 'chartjs-demo/js/Chart';BND file is placing the file in jar.Web-ContextPath: /chartjs-demoInclude-Resource: package.json,\ META-INF/resources/js/Chart.js = node_modules/chart.js/dist/Chart.jsThat's from the code that I wrote based on your example. However, I see the same problem using your code.Are there any configuration steps I might be missing? Please sign in to reply. Reply as... Cancel Abre Chase Abre Chase 6 Years Ago I was able to get my code working by setting the following property in portal-ext.propertiesjavascript.fast.load=falseWhy is this necessary? Please sign in to reply. Reply as... Cancel
Abre Chase Neil Jin 6 Years Ago I upgraded to CE GA4 and I still see the same problem.In my es.js file, if I remove the import then I don't see any errors.import Chart from 'chartjs-demo/js/Chart';BND file is placing the file in jar.Web-ContextPath: /chartjs-demoInclude-Resource: package.json,\ META-INF/resources/js/Chart.js = node_modules/chart.js/dist/Chart.jsThat's from the code that I wrote based on your example. However, I see the same problem using your code.Are there any configuration steps I might be missing? Please sign in to reply. Reply as... Cancel Abre Chase Abre Chase 6 Years Ago I was able to get my code working by setting the following property in portal-ext.propertiesjavascript.fast.load=falseWhy is this necessary? Please sign in to reply. Reply as... Cancel
Abre Chase Abre Chase 6 Years Ago I was able to get my code working by setting the following property in portal-ext.propertiesjavascript.fast.load=falseWhy is this necessary? Please sign in to reply. Reply as... Cancel