How to use Plotly with Stencil?

Have you tried this with Stencil 2? It seems something changed. This was working with Stencil v1.17.3, but with 2.20 and 2.30, I see the error.