Skip to content

npm install error. #74

@seaward

Description

@seaward

Library Version

Describe the bug
Within folder jarviz-jarviz-parent-0.1.6/jarviz-graph, run command 'npm install`, failed with error:

ERROR in ./node_modules/3d-force-graph/dist/3d-force-graph.mjs 142:16-28
Can't import the named export 'AmbientLight' from non EcmaScript module (only default export is available)
@ ./node_modules/react-force-graph/dist/react-force-graph.mjs
@ ./lib/client/graph.js
@ ./lib/client/index.js

ERROR in ./node_modules/three-render-objects/dist/three-render-objects.mjs 145:12-20
Can't import the named export 'BackSide' from non EcmaScript module (only default export is available)
@ ./node_modules/3d-force-graph/dist/3d-force-graph.mjs
@ ./node_modules/react-force-graph/dist/react-force-graph.mjs
@ ./lib/client/graph.js
@ ./lib/client/index.js

ERROR in ./node_modules/three-forcegraph/dist/three-forcegraph.mjs 411:8-12
......

ERROR in ./node_modules/aframe-extras/src/loaders/fbx-model.js
Module not found: Error: Can't resolve 'three/addons/loaders/FBXLoader.js' in '/webapp/seaward/jarviz-jarviz-parent-0.1.6/jarviz-graph/node_modules/aframe-extras/src/loaders'
@ ./node_modules/aframe-extras/src/loaders/fbx-model.js 1:0-62 2:18-27
@ ./node_modules/aframe-extras/src/loaders/index.js
@ ./node_modules/aframe-extras/index.js
@ ./node_modules/3d-force-graph-vr/dist/3d-force-graph-vr.mjs
@ ./node_modules/react-force-graph/dist/react-force-graph.mjs
@ ./lib/client/graph.js
@ ./lib/client/index.js
Child html-webpack-plugin for "jarviz-graph.html":
1 asset
Entrypoint undefined = jarviz-graph.html
[0] ./node_modules/html-webpack-plugin/lib/loader.js!./lib/client/index.html 1.03 KiB {0} [built]
[2] (webpack)/buildin/global.js 472 bytes {0} [built]
[3] (webpack)/buildin/module.js 497 bytes {0} [built]
+ 1 hidden module
npm ERR! code 2
npm ERR! path /webapp/seaward/jarviz-jarviz-parent-0.1.6/jarviz-graph
npm ERR! command failed
npm ERR! command sh -c -- npm run clean && npm run build

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2024-03-28T09_22_32_055Z-debug-0.log

To Reproduce
Jarviz 0.1.7 & 0.1.6
openjdk version "11.0.20" 2023-07-18 LTS
Apache Maven 3.6.3 (Red Hat 3.6.3-15)
nodejs v16.20.2
npm 8.19.4

Expected behavior
npm install should succeeded.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions