Problem with 3d-force-graphs dependecy three-forcegraph
sebsn opened this issue · 1 comments
sebsn commented
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
@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?