You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it was noteworthy, that it does not seem possible to combine the @javascript("http://d3js.org/d3.v3.min.js) tag at class definition with loading the other JavaScript file via: page.addJavaScript("js/tree_example.js");. In this case, as I experienced, the d3 library is not loaded, or at least its contents is not accessible.
Not clear if this is a bug, but I wanted to mention it.
The text was updated successfully, but these errors were encountered:
The problem is that the page.addJavaScript is exeuted befor the @javascript as the page.add will be sent in the bootstrap response and will be added before the annotated javascript.
The correct way to use JS import is to only use one way of importing.
If you would want to use the given way of mixing then the tree_example.js should start with polling until d3 is available e.g.
When importing JavaScript files to a Vaadin Component, as described here:
it was noteworthy, that it does not seem possible to combine the @javascript("http://d3js.org/d3.v3.min.js) tag at class definition with loading the other JavaScript file via: page.addJavaScript("js/tree_example.js");. In this case, as I experienced, the d3 library is not loaded, or at least its contents is not accessible.
Not clear if this is a bug, but I wanted to mention it.
The text was updated successfully, but these errors were encountered: