-
-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Couldn't find the definition of the element with tag 'leaflet-map' #20
Comments
Hi Jim, Do you have any idea about what's wrong with the leaflet4vaadin addon? I found a similar issue: vaadin/flow#8493 Best Regards, |
I now have everything working OK. Have compiled and produced production version which runs fine. I changed to Vaadin 16 don't know if that was the crucial change. Later when I get home I will post pom.xml |
So below is the pom.xml that works for me in production mode, and produces a jar file of compiled frontend code. pom.xml (sorry, it's in two parts)
|
Trying to make a 'production' version of my program which is running OK in development mode.
Vaadin version 15.
Using
vaadin.productionMode=true
in application.properties.Using
mvn clean package -Pproduction
on the command-line.This produces a jar file, which I then run.
I get the following error message:
Failed to instantiate [com.jimbok8.railmap.RailmapApp]: Constructor threw exception; nested exception is java.lang.IllegalStateException: Couldn't find the definition of the element with tag 'leaflet-map' 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
The text was updated successfully, but these errors were encountered: