Hello guys I have a trouble with using javascript plugin with vaadin 10. When i use
@JavaScript("") annotation in my class it seems no working. How i use javascript plugin in my project. And i start it console throughs this error [code]
Uncaught SyntaxError: Unexpected token <
[/code]
Annotation looks fine to me. Check for errors in the main.js.
Unexpected token <
is a JavaScript syntax error, yes. Many editors support syntax checking, or you could try an online tool like http://esprima.org/demo/validate.html
-Olli
I solved my problem. It seems my project structure little bit wrong. By the way thanks for comment.