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

Uncaught TypeError: Cannot read properties of undefined (reading 'close') #4239

Open
2 tasks done
luanesouza opened this issue Dec 2, 2022 · 1 comment
Open
2 tasks done
Labels

Comments

@luanesouza
Copy link

Initial checklist

  • I understand this is a bug report and questions should be posted in the Community Forum
  • I searched issues and couldn’t find anything (or linked relevant results below)

Link to runnable example

No response

Steps to reproduce

  1. Update React and React-Dom to 18.0.0
  2. Update the index file as described in the React docs
  3. Packages and their versions below
    @uppy/core 2.3.4
    @uppy/react 2.2.3
    @uppy/status-bar 2.2.2
    @uppy/transloadit 2.3.7

Expected behavior

Uppy should work with React 18

Actual behavior

I get the error "Uncaught TypeError: Cannot read properties of undefined (reading 'close')"

Screen Shot 2022-12-02 at 14 49 14

Screen Shot 2022-12-02 at 14 51 48

@Murderlon
Copy link
Member

Can you try and upgrade to the latest packages? Also, since React 18 useUppy is broken (#4223). Probably best to create the uppy instance outside of the component for now.

@arturi arturi removed the Triage label Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants