Skip to content

Couldn't find the definition of the element with tag 'leaflet-map' #20

@jimbok8

Description

@jimbok8

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

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions