[Paraview-developers] Development on Light-Viz
Albrecht Kyrieleis
akyrieleis at gmail.com
Mon Apr 16 07:22:57 EDT 2018
Hi,
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.
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 ?
1) running git clone git at github.com:kitware/light-viz.git results in an
unresponsive (for about 10mins) terminal saying 'cloning into 'light-viz''.
2) I have previously just installed light-viz using npm install -g
light-viz which worked fine. But running npm run build results in the
following error:
> light-viz at 1.18.1 build /usr/lib/node_modules/light-viz_test
> webpack --progress --colors
Hash: 90f15ab930dca86c008e
Version: webpack 3.10.0
Time: 124ms
Asset Size Chunks Chunk Names
LightViz.js 3.61 kB 0 [emitted] main
[0] ./lib/app.js-exposed 60 bytes {0} [built]
[1] (webpack)/buildin/global.js 509 bytes {0} [built]
[2] ./lib/app.js 317 bytes {0} [built] [failed] [1 error]
ERROR in ./lib/app.js
Module parse failed: Unexpected token (20:18)
You may need an appropriate loader to handle this file type.
| function loading(message = 'Loading ParaView...') {
| ReactDOM.unmountComponentAtNode(container);
| ReactDOM.render(<ProgressLoaderWidget message={message} />, container);
| }
|
@ ./lib/app.js-exposed 1:38-59
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! light-viz at 1.18.1 build: `webpack --progress --colors`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the light-viz at 1.18.1 build script.
npm ERR! This is probably not a problem with npm. There is likely
additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2018-04-16T11_00_20_346Z-debug.log
Thank you very much for any help
Albrecht
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/paraview-developers/attachments/20180416/27c25a3a/attachment.html>
More information about the Paraview-developers
mailing list