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

src file is not accepting image URL #1

Open
puneetpj opened this issue Jul 19, 2023 · 0 comments
Open

src file is not accepting image URL #1

puneetpj opened this issue Jul 19, 2023 · 0 comments

Comments

@puneetpj
Copy link

<ImageEditor src={URL.createObjectURL(state.img)} onSave={(url) => setUrl(url)} saveButtonText="Preview" />;

in the above code I am passing my Image into src but not accepting it giving error.

this is the error

Uncaught Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.

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