How to save renderer output (vtk python) in format that is compatible on web side(vtk.js)

Thankyou it worked on glance , want to know one thing as i am new to vtk.js as when i used HttpSceneLoader on js side using webpack i am following the basic cone example (Starting a vtk.js project from scratch | vtk.js) and adding my own things in it, but it gives the error , you know how to sort this out.

This is my index.js in src folder.

this is my index.html in dist folder

ERROR by running npm run command