[vtkusers] VTK.js - "Using vtk.js as an ES6 dependency" example not working

Sebastien Jourdain sebastien.jourdain at kitware.com
Sun Jun 4 19:46:40 EDT 2017


Yes I have to fix the documentation to match the new webpack2 usage. Sorry
about that.

On Sun, Jun 4, 2017 at 1:23 PM, Aron Helser <aron.helser at kitware.com> wrote:

> Hi!
> vtk-js was just updated on Friday to use Webpack 2.0, and the
> webpack.loaders.js was re-factored into three separate files.
> It seems the example hasn't been updated yet.
> You could either check out  version 2.24.8 - just before the Webpack 2.0
> transition, or take a stab at updating the example, and post or submit your
> modifications!
> Sorry for the confusion,
> Aron
>
> On Sun, Jun 4, 2017 at 3:15 PM, oblakr <2448.rok at gmail.com> wrote:
>
>> Hi,
>>
>> the following example:
>> https://kitware.github.io/vtk-js/docs/intro_vtk_as_es6_dependency.html
>>
>> Fails upon the "npm run build" command. The following error is thrown:
>>
>> > my-web-project at 0.0.1 build C:\Users\Rok\Desktop\MyWebProject
>> > webpack
>>
>> module.js:471
>>     throw err;
>>     ^
>>
>> Error: Cannot find module
>> './node_modules/vtk.js/Utilities/config/webpack.loaders.js'
>>     at Function.Module._resolveFilename (module.js:469:15)
>>     at Function.Module._load (module.js:417:25)
>>     at Module.require (module.js:497:17)
>>     at require (internal/module.js:20:19)
>>     at Object.<anonymous>
>> (C:\Users\*****\Desktop\MyWebProject\webpack.config.js:4:15)
>>     at Module._compile (module.js:570:32)
>>     at Object.Module._extensions..js (module.js:579:10)
>>     at Module.load (module.js:487:32)
>>     at tryModuleLoad (module.js:446:12)
>>     at Function.Module._load (module.js:438:3)
>>
>> There is no webpack.loaders.js inside the Utilities/config folder.
>> What am I doing wrong here?
>>
>>
>>
>>
>>
>>
>> --
>> View this message in context: http://vtk.1045678.n5.nabble.c
>> om/VTK-js-Using-vtk-js-as-an-ES6-dependency-example-not-work
>> ing-tp5743535.html
>> Sent from the VTK - Users mailing list archive at Nabble.com.
>> _______________________________________________
>> 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:
>> http://public.kitware.com/mailman/listinfo/vtkusers
>>
>
>
> _______________________________________________
> 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:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170604/83cb7df8/attachment.html>


More information about the vtkusers mailing list