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

Error "Must Specify id In Element" though specified #279

Closed
omersha-dev opened this issue Jul 25, 2021 · 1 comment
Closed

Error "Must Specify id In Element" though specified #279

omersha-dev opened this issue Jul 25, 2021 · 1 comment

Comments

@omersha-dev
Copy link

When trying to use Element inside a User Component, getting an error:
A <Element /> that is used inside a User Component must specify an id prop, eg: <Element id="text_element">...</Element>
even though the id prop is defined:
<Element id="text" canvas></Element>

To Reproduce
I have gotten to the "Defining Droppable Regions" in the Basic Tutorial and when I am trying to add an Element it gives the above error.

Expected behavior
I was trying to complete the basic tutorial so the expectation is just for it to work.

My Environment
| craft.js |
| React |
| TypeScript |
| Mozilla FireFox |
| npm |
| Windows 10 |

@omersha-dev
Copy link
Author

Found the solution here.

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

1 participant