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

Failed to resolve import "v-network-graph/lib/layouts/force" Does the file exist? #141

Closed
Koffer0-0 opened this issue Jan 5, 2024 · 2 comments

Comments

@Koffer0-0
Copy link

Koffer0-0 commented Jan 5, 2024

Hey, have issue with the importng ForceLayout, even installing and uninstaling d3-force, didn't help. I saw that installing the lib not required. The reason that, I can navigate to this file, but vite plugin gives error.

import {ForceLayout} from "v-network-graph/lib/layouts/force";
image

@dash14
Copy link
Owner

dash14 commented Jan 10, 2024

Hi @Koffer0-0,
Please try the following code!

import { ForceLayout } from "v-network-graph/lib/force-layout"

@Koffer0-0
Copy link
Author

Thanks! it works!

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