-
Notifications
You must be signed in to change notification settings - Fork 169
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
Using Addon that references to a template file from npm package doesn't work in production mode #8493
Comments
This is another corner case of the problem described in #8053 It can be checked by running the attached project using I did a quick research and comparing the files there is a block in dev-mode that includes sources for the addon sources in devmode different to the one in production
|
UPDATE: the project in V14.2.0 does not fail, but it has the commit optimising the stats For some reason it is added to the modules key instead of to the chunks one as it was above
|
Just for adding more info, I did some manual adjustments to the stats, and removing all source blocks but those whose name is in |
Also take into account that chunk modules may have submodules. Fixes #8493
Also take into account that chunk modules may have submodules. Fixes #8493
Also take into account that chunk modules may have submodules. Fixes #8493
Thanks. Now what i must do to take the fix? |
@kobazzo Until the next release 3.1.2 and the 16 version is out you would need to use the 3.1-SNAPSHOT |
Thanks. 3.1-SNAPSHOT of what? What is the pom import that i need to use? thank you. |
you should be able to update the Vaadin version to 16.0-SNAPSHOT Else you might need to update with the following set:
Note that you need to switch the vaadin-maven-plugin to flow-maven-plugin when you use this |
Thank you.
But i have this error: Could not download sources or javadoc Can you help me please? Thank you. |
Do you have vaadin-prereleases as a repository and pluginRepository? If you have those then it should find the snapshots. e.g. add the following
|
Also take into account that chunk modules may have submodules. Fixes #8493
This issue seems to still exists somehow, we have that now in a V20 project. I'll try to create a sample project with the reproducable issue. |
To reproduce:
mvn clean jetty:run -Pproduction
java.lang.IllegalStateException: Couldn't find the definition of the element with tag 'color-picker-field' 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
Observations:
@JsModule("@appreciated/color-picker-field/src/color-picker-field.js")
example.zip
The text was updated successfully, but these errors were encountered: