Guy27
(Guy Goldwasser)
October 18, 2020, 8:55am
1
B"h
Hi,
Using new Vaddin API I create my own web components e.g. @Tag (“timeline”)
All work perfect to me until reach the production
From some unknown reason, despite on debug all looks well, the component does not render on browser
instead i got empty “timeline” tag
I can guess that something missing while run the production compilation but i have no clue
Anyone can give a hint where to start from?
Thanks
ollit.1
(Olli Tietäväinen)
October 19, 2020, 6:45am
2
I don’t know if it’s the source of your issues, but a custom element tag must contain at least one hyphen; timeline
is an invalid HTML tag. timeline-component
would be a valid one.
Guy27
(Guy Goldwasser)
October 19, 2020, 7:17am
3
B"H
looks like the compiler throw out all not in use + any component which has no NPM
https://vaadin.com/docs/v14/flow/production/tutorial-production-mode-advanced.html
after set optimizeBundle=false, now i dont have optimization but have my own component in solution.
Not clear to me why both come together, but this is the situation