vasturiano / 3d-force-graph-vr

3D force-directed graph component in VR
https://vasturiano.github.io/3d-force-graph-vr/example/large-graph/
MIT License
214 stars 51 forks source link

Problem with 3d-force-graphs dependecy three-forcegraph #20

Open sebsn opened 3 years ago

sebsn commented 3 years ago

Im Trying to implement a graph in angular. Unfortunately I cant build it because three-forcegraph imports 'three'

import { Object3D, Material } from 'three';

This cannot be found and throws an error: Error: ./node_modules/three-forcegraph/dist/three-forcegraph.module.js Module not found: Error: Can't resolve 'three' in '/Users/s/Projects//***/node_modules/three-forcegraph/dist'

Is there anything I'm missing?

vasturiano commented 3 years ago

@sebsn are you still experiencing this issue?

three is a peerDependency of three-forcegraph. That should be provided by aframe which is imported directly from this module.

Can you look in your app's dependency tree under node-modules to see if three is available there?