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

[Issue] Check the render method of FileAttachment. #18

Open
CollinHerber opened this issue Feb 5, 2023 · 4 comments
Open

[Issue] Check the render method of FileAttachment. #18

CollinHerber opened this issue Feb 5, 2023 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@CollinHerber
Copy link

<FileUpload multiFile={true} onFilesChange={handleFilesChange} onContextReady={context => {}} />

	function handleFilesChange(files) {
            //no-op
	}

Upon uploading any document I am presented immediantly with this error:

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

Check the render method of `FileAttachment`.

It was working previously but as of today this is the error we are getting without any code changes.
I recreated this in a blank react environment and am experience this exact issue so it is not something custom to our application

Dependencies

		"react-mui-fileuploader": "^0.5.2",
		"react": "^18.2.0",
@andretti1977
Copy link

Same bug too: i was checking the demo and it break with the same error

@rouftom rouftom self-assigned this Mar 7, 2023
@rouftom rouftom added the bug Something isn't working label Mar 7, 2023
@KwonSeungMi
Copy link

Is this bug being fixed? I also went back before, but the same error occurs.
I'm in a hurry. How can I solve this?

@mikocot
Copy link
Contributor

mikocot commented Apr 3, 2023

Is this bug being fixed? I also went back before, but the same error occurs. I'm in a hurry. How can I solve this?

usually it does get faster if you add a PR yourself :)

@rouftom
Copy link
Owner

rouftom commented Apr 4, 2023

A little overwhelmed but I'll look into the bug as soon as possible, but you can import the component from the next one while waiting for me to fix the issue:

import FileUpload from 'react-mui-fileuploader/dist/index.esm'

@rouftom rouftom pinned this issue Apr 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants