# vtk wasm project without -sMODULARIZE=1 goes well, but with -sMODULARIZE=1 show nothing

**URL:** https://discourse.vtk.org/t/vtk-wasm-project-without-smodularize-1-goes-well-but-with-smodularize-1-show-nothing/14726
**Category:** vtk.wasm
**Created:** [October 16, 2024, 4:04pm UTC](https://discourse.vtk.org/t/vtk-wasm-project-without-smodularize-1-goes-well-but-with-smodularize-1-show-nothing/14726 "2024-10-16T16:04:35Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ruihuasun](https://discourse.vtk.org/user_avatar/discourse.vtk.org/ruihuasun/32/9362_2.png) [@ruihuasun](https://discourse.vtk.org/u/ruihuasun)
#### Post date: [October 16, 2024, 4:04pm UTC](https://discourse.vtk.org/t/vtk-wasm-project-without-smodularize-1-goes-well-but-with-smodularize-1-show-nothing/14726/1 "2024-10-16T16:04:35Z")

</div>

I’m looking into wasm recently. And build the vtk-wasm successfully.  
If I build examples in [Examples/Emscripten/Cxx/Cone · master · VTK / VTK · GitLab (kitware.com)](https://gitlab.kitware.com/vtk/vtk/-/tree/master/Examples/Emscripten/Cxx/Cone), the cone is shown in my browser, everything goes well.  
But if I build examples in [Examples/Emscripten/Cxx/ConeMultiBackend · master · VTK / VTK · GitLab (kitware.com)](https://gitlab.kitware.com/vtk/vtk/-/tree/master/Examples/Emscripten/Cxx/ConeMultiBackend) and [Examples/Emscripten/Cxx/MultiCone · master · VTK / VTK · GitLab (kitware.com)](https://gitlab.kitware.com/vtk/vtk/-/tree/master/Examples/Emscripten/Cxx/MultiCone), There is nothing in the broswer except for few buttons used in MultiCone project.  
There are no errors in the browser console.  
My system is Windows10, vtk version is 9.4.0rc1. Both chrome and edge are used to test.  
Any help would be appreciated!

---

<div class="post-metadata">

### Author: ![jaswantp](https://discourse.vtk.org/user_avatar/discourse.vtk.org/jaswantp/32/10046_2.png) [@jaswantp](https://discourse.vtk.org/u/jaswantp)
#### Post date: [October 16, 2024, 7:49pm UTC](https://discourse.vtk.org/t/vtk-wasm-project-without-smodularize-1-goes-well-but-with-smodularize-1-show-nothing/14726/2 "2024-10-16T19:49:46Z")

</div>

Hi,

I tested again and you’re correct, one of them doesn’t work.

> [Examples/Emscripten/Cxx/ConeMultiBackend · master · VTK / VTK · GitLab (kitware.com)](https://gitlab.kitware.com/vtk/vtk/-/tree/master/Examples/Emscripten/Cxx/ConeMultiBackend)

This one works for me, just give it a little time as it loads a large number of actors.

> [Examples/Emscripten/Cxx/MultiCone · master · VTK / VTK · GitLab (kitware.com)](https://gitlab.kitware.com/vtk/vtk/-/tree/master/Examples/Emscripten/Cxx/MultiCone)

This one has a problem which sets the canvas height to “0”. I’ll debug it.
