(あなた) 6年 前 [...] 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 投票するためにはログインが必要です。 次として送信する: キャンセル
Abre Chase 6年 前 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? 投票するためにはログインが必要です。 次として送信する: キャンセル Neil Jin Abre Chase 6年 前 Hi Abre, right, it doesn't work on GA3 . It works on CE GA4. 投票するためにはログインが必要です。 次として送信する: キャンセル Abre Chase Neil Jin 6年 前 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? 投票するためにはログインが必要です。 次として送信する: キャンセル Abre Chase Abre Chase 6年 前 I was able to get my code working by setting the following property in portal-ext.propertiesjavascript.fast.load=falseWhy is this necessary? 投票するためにはログインが必要です。 次として送信する: キャンセル
Neil Jin Abre Chase 6年 前 Hi Abre, right, it doesn't work on GA3 . It works on CE GA4. 投票するためにはログインが必要です。 次として送信する: キャンセル Abre Chase Neil Jin 6年 前 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? 投票するためにはログインが必要です。 次として送信する: キャンセル Abre Chase Abre Chase 6年 前 I was able to get my code working by setting the following property in portal-ext.propertiesjavascript.fast.load=falseWhy is this necessary? 投票するためにはログインが必要です。 次として送信する: キャンセル
Abre Chase Neil Jin 6年 前 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? 投票するためにはログインが必要です。 次として送信する: キャンセル Abre Chase Abre Chase 6年 前 I was able to get my code working by setting the following property in portal-ext.propertiesjavascript.fast.load=falseWhy is this necessary? 投票するためにはログインが必要です。 次として送信する: キャンセル
Abre Chase Abre Chase 6年 前 I was able to get my code working by setting the following property in portal-ext.propertiesjavascript.fast.load=falseWhy is this necessary? 投票するためにはログインが必要です。 次として送信する: キャンセル