Different with self components, between development and production mode

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

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.

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