Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sebsn opened this issue Feb 25, 2021 · 1 comment
Open

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

sebsn opened this issue Feb 25, 2021 · 1 comment

Comments

@sebsn
Copy link

sebsn commented Feb 25, 2021

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
Copy link
Owner

@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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants