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

Sebastien Jourdain sebastien.jourdain at kitware.com
Mon Jun 5 09:56:40 EDT 2017


Hi Rok,

Thanks for reporting back. I guess trying to fix documentation on Sunday
night while doing other things might not be the best idea. ;-)
Anyhow, I did push some fix and hopefully I did not miss anything else.
(The website should be updated in ~5 minutes)

Let me know if you run into anything else.

But in your case you just need to add the following line inside the array
of "rules":

{ test: /\.html$/, loader: 'html-loader' },

Seb


On Sun, Jun 4, 2017 at 11:32 PM, oblakr <2448.rok at gmail.com> wrote:

> Hi,
>
> thanks, the example was updated, but it would still not build:
>
> First, it says sourcePath in webpack.config.js is not defined - it really
> isn't, so I changed it to "entry" (which is defined at the top.
> Then, it said " - configuration.output.path: The provided value "./dist" is
> not an absolute path!". I fixed this by changing the "path: './dist'," to
> "path: path.join(__dirname, './dist'),".
>
> This time it got still further, but I got another error:
>
> ERROR in ./src/controller.html
> Module parse failed: /Users/rokoblak/Desktop/vtkapp/src/controller.html
> Unexpected token (1:0)
> You may need an appropriate loader to handle this file type.
> |
>
> |
>
> |
>  @ ./src/index.js 9:0-45
>  @ ./src/index.js
>
>
> This one I don't know how to resolve, since I have next to no experience
> with Webpack.
>
> Cheers,
> Rok
>
>
>
> --
> View this message in context: http://vtk.1045678.n5.nabble.
> com/VTK-js-Using-vtk-js-as-an-ES6-dependency-example-not-
> working-tp5743535p5743545.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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170605/417c81b4/attachment.html>


More information about the vtkusers mailing list