<div dir="ltr">Hi,<div>I want to customize Light-Viz (under Linux CentOS 7) and started to go through the steps on the developments page but ran into a few problems.</div><div><br></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">1) I want to add a new functionality including a new 'button' for Light-Viz. So I think I would amend the scripts in dir lib adn server and then do a npm run build:release to produce content in dir distro which is seen by the webserver. Is that right ?</span><br></div><div><br></div><div>1)  running <span style="color:rgb(77,77,76);font-family:"Source Code Pro",Monaco,Menlo,Consolas,monospace;font-size:14.25px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(238,238,238);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">git clone git@github.com:kitware/light-viz.git  </span><span style="font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span style="background-color:rgb(255,255,255)">results in an unresponsive (for about 10mins) terminal saying 'cloning into 'light-viz''.</span></span></div><div><span style="font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span style="background-color:rgb(255,255,255)">2) I have previously just installed light-viz using   </span></span><span style="font-family:inherit;font-size:14.25px;font-style:inherit;font-weight:inherit;background-color:rgb(238,238,238);color:rgb(77,77,76)">npm install -g light-viz    </span><span style="font-family:inherit;font-style:inherit;font-weight:inherit;background-color:rgb(255,255,255)">which worked fine. But running npm run build results in the  following error:</span><span style="font-family:inherit;font-style:inherit;font-weight:inherit"></span></div><div><span style="font-family:inherit;font-style:inherit;font-weight:inherit;background-color:rgb(255,255,255)"><br></span></div><div><span style="background-color:rgb(255,255,255)"><div>> light-viz@1.18.1 build /usr/lib/node_modules/light-viz_test</div><div>> webpack --progress --colors</div><div><br></div><div>Hash: 90f15ab930dca86c008e                                                         </div><div>Version: webpack 3.10.0</div><div>Time: 124ms</div><div>      Asset     Size  Chunks             Chunk Names</div><div>LightViz.js  3.61 kB       0  [emitted]  main</div><div>   [0] ./lib/app.js-exposed 60 bytes {0} [built]</div><div>   [1] (webpack)/buildin/global.js 509 bytes {0} [built]</div><div>   [2] ./lib/app.js 317 bytes {0} [built] [failed] [1 error]</div><div><br></div><div>ERROR in ./lib/app.js</div><div>Module parse failed: Unexpected token (20:18)</div><div>You may need an appropriate loader to handle this file type.</div><div>| function loading(message = 'Loading ParaView...') {</div><div>|   ReactDOM.unmountComponentAtNode(container);</div><div>|   ReactDOM.render(<ProgressLoaderWidget message={message} />, container);</div><div>| }</div><div>| </div><div> @ ./lib/app.js-exposed 1:38-59</div><div>npm ERR! code ELIFECYCLE</div><div>npm ERR! errno 2</div><div>npm ERR! light-viz@1.18.1 build: `webpack --progress --colors`</div><div>npm ERR! Exit status 2</div><div>npm ERR! </div><div>npm ERR! Failed at the light-viz@1.18.1 build script.</div><div>npm ERR! This is probably not a problem with npm. There is likely additional logging output above.</div><div><br></div><div>npm ERR! A complete log of this run can be found in:</div><div>npm ERR!     /root/.npm/_logs/2018-04-16T11_00_20_346Z-debug.log</div><div style="font-family:inherit;font-style:inherit;font-weight:inherit"><br></div><div style="font-family:inherit;font-style:inherit;font-weight:inherit">Thank you very much for any help</div><div style="font-family:inherit;font-style:inherit;font-weight:inherit"><br></div><div style="font-family:inherit;font-style:inherit;font-weight:inherit">Albrecht</div></span></div></div>