question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

couldn't create edge between custom nodes

See original GitHub issue

Describe the Bug

Hi Guys,

I’m starting working with react flow and going step by step on creating new features. I already read some documentation to understand how to customize nodes and on the process of doing this I’m getting this error: couldn't create edge for target handle id: l1; edge id: a1-a3

I read some of the issues on github including #1641 and other related in the same issue and had no success.

Your Example Website or App

https://codesandbox.io/s/exciting-shaw-tyfq4v?file=/src/styles.css

Steps to Reproduce the Bug or Issue

  1. Try to connect a custom node with a default node using mouse (it worked > A1-B1)
  2. Try to connect a custom node with a custom node using mouse (not worked > A1-A3)
  3. Create an edge(custom node to custom node id a1-a3) in the edges.js to see if the edge will be drawn on the page but I get an error on the console

Expected behavior

Render the edge between custom nodes

Screenshots or Videos

No response

Platform

  • OS: macOS
  • Browser: Chrome
  • Version: 99.0.4844.83

Additional context

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
brunopensocommented, Mar 30, 2022

I saw that the doc is already update here

Thanks all!!!

0reactions
brunopensocommented, Mar 30, 2022

Hi everyone,

Adding the type target to the handle it works fine.

@terceser I will test the ConnectionMode and if need a new issue will be open.

@moklick Do you want me to open a new issue to update the documentation? Or this stay open?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting Guide - React Flow
This usually happens when you are specifying a custom node type for one of your nodes but not passing the correct nodeTypes property...
Read more >
edges to the node steps are not rendering in react-flow-renderer
Iam trying to display steps in the data.js file as nodes and tried to connect those edges. But the edges are only visible....
Read more >
How to get the source and target handles in React Flow 10
If you want to add an edge in React Flow, it looks similar to this: Let me explain the content: source = id...
Read more >
Troubleshoot EKS managed node group failures - Amazon AWS
My Amazon Elastic Kubernetes Service (Amazon EKS) managed node group failed to create. Nodes can't join the cluster and I received an error ......
Read more >
Gatsby Node APIs
Documentation on Node APIs used in Gatsby build process for common uses like ... You can also fetch data from remote or local...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found