Hi guys, I'm in the process of migrating my application from Tap 5.3.8 to Tap 5.4-beta-26.
I have a simple Index.tml, Index.java and my_test.js files. But whenever i run the app the Chrome console keep showing an error Loading 0 libraries console.js:104 Executing 1 inits my_test.js:1 Uncaught SyntaxError: Unexpected token < console.js:104 Loaded module my_test.js console.js:104 All inits executed require.js:1895 Resource interpreted as Script but transferred with MIME type text/html: "http://localhost:8080/Tap54/my_test.js". Here's my index.tml <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:t="http://tapestry.apache.org/schema/tapestry_5_3.xsd" xmlns:p="tapestry:parameter" lang="en"> <body> <h1>Hello</h1> </body> </html> Index.java @Import(module = "my_test.js") public class Index { } And my_test.js define(["jquery", "t5/core/console", "bootstrap"], function($, console) { return function(params) { console.warn("jQuery version: " + $().jquery); }; }); My project structure is like this : src + net.mreunionlabs.tap54 + pages + Index.java WebContent + META-INF + modules + my_test.js + WEB-INF I tried putting the modules under WEB-INF/classes/META-INF/modules but it still shows the same error. Any suggestion? Thanks -- http://www.mreunionlabs.net/ <http://www.mreunion-labs.net/> twitter : @mreunionlabs @abangkis page : https://plus.google.com/104168782385184990771