<div dir="ltr">Good catch, I'll update the code, but the missing loader would be <a href="https://github.com/Kitware/vtk-js/blob/master/Utilities/config/rules-tests.js#L5-L10">https://github.com/Kitware/vtk-js/blob/master/Utilities/config/rules-tests.js#L5-L10</a> and that should be part of the vtk rules.<div><br></div><div>Thanks for reporting the issue.</div><div><br></div><div>Seb</div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Jun 14, 2018 at 3:38 AM smurphy <<a href="mailto:sebastien.murphy@gmail.com">sebastien.murphy@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I am having issues with running the vtk.js example from<br>
<a href="https://kitware.github.io/vtk-js/docs/intro_vtk_as_es6_dependency.html" rel="noreferrer" target="_blank">https://kitware.github.io/vtk-js/docs/intro_vtk_as_es6_dependency.html</a>.<br>
<br>
I did exactly as instructed (at least I believe I did and cross-checked many<br>
times).<br>
<br>
when running <br>
>npm run build <br>
I get the following error<br>
<br>
ERROR in<br>
./node_modules/vtk.js/Sources/Rendering/OpenGL/glsl/vtkVolumeVS.glsl<br>
Module parse failed: Unexpected token (18:10)<br>
You may need an appropriate loader to handle this file type.<br>
<br>
The entire output until this error is copied below. I also attach the<br>
webpack.config.js file.<br>
<br>
Tried searching online and in the forum but can't find any solutions to this<br>
specific problem.<br>
<br>
Thanks,<br>
Sebastien<br>
<br>
> mywebproject@1.0.0 build ~/VTK/Web/MyWebProject<br>
> webpack<br>
<br>
Hash: a6f352cb63b054c23d33<br>
Version: webpack 4.8.3<br>
Time: 1959ms<br>
Built at: 2018-06-14 11:29:58<br>
 1 asset<br>
Entrypoint main = main.js<br>
 [2] (webpack)/buildin/amd-define.js 88 bytes {0} [built]<br>
 [4] (webpack)/buildin/amd-options.js 82 bytes {0} [built]<br>
 [5] (webpack)/buildin/module.js 519 bytes {0} [built]<br>
 [6] (webpack)/buildin/global.js 509 bytes {0} [built]<br>
[10] ./src/controller.html 158 bytes {0} [built] [failed] [1 error]<br>
[20] ./src/index.js + 98 modules 904 KiB {0} [built]<br>
     | ./src/index.js 2.59 KiB [built]<br>
     |     + 98 hidden modules<br>
[21] crypto (ignored) 15 bytes {0} [optional] [built]<br>
    + 25 hidden modules<br>
<br>
WARNING in ./node_modules/vtk.js/Sources/Rendering/OpenGL/Texture/index.js<br>
1293:25-47 "export 'default' (imported as 'ComputeGradientsWorker') was not<br>
found in './ComputeGradients.worker'<br>
 @ ./node_modules/vtk.js/Sources/Rendering/OpenGL/Texture/index.js<br>
 @ ./node_modules/vtk.js/Sources/Rendering/OpenGL/ViewNodeFactory/index.js<br>
 @ ./node_modules/vtk.js/Sources/Rendering/OpenGL/RenderWindow/index.js<br>
 @<br>
./node_modules/vtk.js/Sources/Rendering/Misc/FullScreenRenderWindow/index.js<br>
 @ ./src/index.js<br>
<br>
WARNING in configuration<br>
The 'mode' option has not been set, webpack will fallback to 'production'<br>
for this value. Set 'mode' option to 'development' or 'production' to enable<br>
defaults for each environment.<br>
You can also set it to 'none' to disable any default behavior. Learn more:<br>
<a href="https://webpack.js.org/concepts/mode/" rel="noreferrer" target="_blank">https://webpack.js.org/concepts/mode/</a><br>
<br>
ERROR in<br>
./node_modules/vtk.js/Sources/Rendering/OpenGL/glsl/vtkVolumeVS.glsl<br>
Module parse failed: Unexpected token (18:10)<br>
You may need an appropriate loader to handle this file type.<br>
|<br>
=========================================================================*/<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html</a><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</blockquote></div>