[vtkusers] vtk-js webpack configuration

Patricio Sandana Patricio.Sandana at synopsys.com
Mon Dec 18 04:26:18 EST 2017


Hi Sebastien,

It worked. I just thought npm will retrieve all the vtk.js dependencies automatically. Many thanks!

Cheers,

Pato Sandaña
TCAD R&D Engineer

From: Sebastien Jourdain [mailto:sebastien.jourdain at kitware.com]
Sent: Friday, December 15, 2017 5:56 PM
To: Patricio Sandana <Patricio.Sandana at synopsys.com>
Cc: vtkusers at vtk.org
Subject: Re: [vtkusers] vtk-js webpack configuration

you are missing some dev dependencies that are coming with npm install kw-web-suite --save-dev
but you can add them individually after each error you may run into.

For the current one, you need:

$ npm install shader-loader --save-dev

On Fri, Dec 15, 2017 at 9:12 AM, Patricio Sandana <Patricio.Sandana at synopsys.com<mailto:Patricio.Sandana at synopsys.com>> wrote:
Hi everyone,

I tried to setup a webpack project with vtk-js. I followed the instructions from here https://kitware.github.io/vtk-js/docs/intro_vtk_as_es6_dependency.html<https://urldefense.proofpoint.com/v2/url?u=https-3A__kitware.github.io_vtk-2Djs_docs_intro-5Fvtk-5Fas-5Fes6-5Fdependency.html&d=DwMFaQ&c=DPL6_X_6JkXFx7AXWqB0tg&r=RTHchWjhlQtHtkpaYSjNSag78sFhFdYa6LnDJBrNgcw&m=Sjd3Wts5ZN5UW7w5dXYfO82wUgbmVPuJFME5BgMRzDE&s=rNrofiXf9jGLhGmzJ8isU2EJO7uewCUNm0JDfhhQjz8&e=>. As my project is already created, I copied manually the things they seem like needed. But when running my project I got this error:

ERROR in ./~/vtk.js/Sources/Rendering/OpenGL/ImageMapper/index.js
Module not found: Error: Can't resolve 'shader-loader' in 'C:\ProjectFolder'
@ ./~/vtk.js/Sources/Rendering/OpenGL/ImageMapper/index.js 53:21-87
@ ./~/vtk.js/Sources/Rendering/OpenGL/ViewNodeFactory/index.js
@ ./~/vtk.js/Sources/Rendering/OpenGL/RenderWindow/index.js
@ ./~/vtk.js/Sources/Rendering/Misc/FullScreenRenderWindow/index.js
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://localhost:8080<https://urldefense.proofpoint.com/v2/url?u=http-3A__localhost-3A8080&d=DwMFaQ&c=DPL6_X_6JkXFx7AXWqB0tg&r=RTHchWjhlQtHtkpaYSjNSag78sFhFdYa6LnDJBrNgcw&m=Sjd3Wts5ZN5UW7w5dXYfO82wUgbmVPuJFME5BgMRzDE&s=rJiusg0noprNPGML4G1Ogg7XZ1shzdb_l1_sK1JLE_0&e=> webpack/hot/dev-server ./src/main.js

What could be wrong or missing?

Regards,

Pato Sandaña
TCAD R&D Engineer


_______________________________________________
Powered by www.kitware.com<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.kitware.com&d=DwMFaQ&c=DPL6_X_6JkXFx7AXWqB0tg&r=RTHchWjhlQtHtkpaYSjNSag78sFhFdYa6LnDJBrNgcw&m=Sjd3Wts5ZN5UW7w5dXYfO82wUgbmVPuJFME5BgMRzDE&s=wUfC7O9cDH3vF5Mndh0ZNB55Casmhpbo_xqdSGgbR3g&e=>

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.kitware.com_opensource_opensource.html&d=DwMFaQ&c=DPL6_X_6JkXFx7AXWqB0tg&r=RTHchWjhlQtHtkpaYSjNSag78sFhFdYa6LnDJBrNgcw&m=Sjd3Wts5ZN5UW7w5dXYfO82wUgbmVPuJFME5BgMRzDE&s=Cpa7rulPS8MfNjqoAK2gjjNwqJw82QBuqzQewV-WJGc&e=>

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.vtk.org_Wiki_VTK-5FFAQ&d=DwMFaQ&c=DPL6_X_6JkXFx7AXWqB0tg&r=RTHchWjhlQtHtkpaYSjNSag78sFhFdYa6LnDJBrNgcw&m=Sjd3Wts5ZN5UW7w5dXYfO82wUgbmVPuJFME5BgMRzDE&s=-dTNOZa2Wh2h8GHhj1LiSkM8sm2qstWIcHkh8f3TBwo&e=>

Search the list archives at: http://markmail.org/search/?q=vtkusers<https://urldefense.proofpoint.com/v2/url?u=http-3A__markmail.org_search_-3Fq-3Dvtkusers&d=DwMFaQ&c=DPL6_X_6JkXFx7AXWqB0tg&r=RTHchWjhlQtHtkpaYSjNSag78sFhFdYa6LnDJBrNgcw&m=Sjd3Wts5ZN5UW7w5dXYfO82wUgbmVPuJFME5BgMRzDE&s=cusEOaYg2Nx0GwOhxCBjY9TS2IEymXT74dlKudmUSXA&e=>

Follow this link to subscribe/unsubscribe:
https://vtk.org/mailman/listinfo/vtkusers<https://urldefense.proofpoint.com/v2/url?u=https-3A__vtk.org_mailman_listinfo_vtkusers&d=DwMFaQ&c=DPL6_X_6JkXFx7AXWqB0tg&r=RTHchWjhlQtHtkpaYSjNSag78sFhFdYa6LnDJBrNgcw&m=Sjd3Wts5ZN5UW7w5dXYfO82wUgbmVPuJFME5BgMRzDE&s=HknD9gNuIHdNrvRQm-O6jHhZJBo4QE5vLKbcNanh1OU&e=>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://vtk.org/pipermail/vtkusers/attachments/20171218/2ea82692/attachment.html>


More information about the vtkusers mailing list