[vtkusers] vtk-js webpack configuration

Sebastien Jourdain sebastien.jourdain at kitware.com
Fri Dec 15 11:55:46 EST 2017


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> 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. 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
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> https://vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://vtk.org/pipermail/vtkusers/attachments/20171215/7230fde5/attachment.html>


More information about the vtkusers mailing list