Hi, running the application in DEBUG MODE within IDE I receive this error:

Hi, running the application in DEBUG MODE within IDE I receive this error:

Caused by: java.lang.IllegalStateException: Couldn't find the definition of the element with tag 'file-download-wrapper' in any template file declared using '@JsModule' annotations. Check the availability of the template files in your WAR file or provide alternative implementation of the method getTemplateContent() which should return an element representing the content of the template file

But when building a production JAR with Maven and running it with java -jar… everything works as expected.

What is my problem?

Classpath issue maybe?

I found out, that it works after calling mvn vaadin:prepare-frontend vaadin:build-frontend. What is the difference to the IDE build?

With this approach, the LiveReload does not work anymore.

Any suggestions?