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
PolymerTemplate JS files from add-ons won't get picked up by NpmTemplateParser #6069
Comments
Where is the template file placed? |
Please provide exact steps and not just general description. Most likely the issue is in the resource location as Mikael said. |
Yes, the template file is placed in that folder only. |
Please see the project attached for testing this. |
Thanks for the sample project. I noted that no one had considered making a PolymerTemplate add-on and we were checking the wrong path in the parser. |
Hi, I'm experiencing this exact issue with 15.0.0 - the very same setup of my projects did work until now with the latest version of 14. Thanks in advance |
Hi @KasparScherrer, |
Irrespective of where you place the JS file of PolymetTemplate in add-ons, it will not get picked up by NpmTemplateParser when used it an application.
How to reproduce:
(1) Create an add-on Component by extending PolymerTemplate. (It can be as simple as the "hello world" example given in the Vaadin documentation).
(2) Create another project (in NPM mode) and try to use the Component defined in the add-on created in Step 1.
The NpmTemplateParser will complain about the non-existence of the JS file. (One can verify that the JS file is there in the jar file created by the add-on but still it won't get picked up by the template parser).
The text was updated successfully, but these errors were encountered: