[vtkusers] vtk-js webpack configuration

Patricio Sandana Patricio.Sandana at synopsys.com
Fri Dec 15 11:12:00 EST 2017


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. 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 webpack/hot/dev-server ./src/main.js

What could be wrong or missing?

Regards,

Pato Sandaña
TCAD R&D Engineer

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://vtk.org/pipermail/vtkusers/attachments/20171215/3f6e3539/attachment.html>


More information about the vtkusers mailing list