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

PropTypes is undefined #1

Open
ururk opened this issue Apr 15, 2020 · 2 comments · May be fixed by #2
Open

PropTypes is undefined #1

ururk opened this issue Apr 15, 2020 · 2 comments · May be fixed by #2

Comments

@ururk
Copy link

ururk commented Apr 15, 2020

When tying to use this code with the latest React, I get this error:

TypeError: undefined is not an object (evaluating '_react.PropTypes.string')

In DropzoneS3Uploader.js:

import React, {PropTypes} from 'react';

Should be:

import React from 'react';
import PropTypes from 'prop-types';

There may be other issues with this library (it's several commits behind the original repo), but this is one fix I had to do.

ururk added a commit to ururk/react-dropzone-s3-uploader-multipart that referenced this issue Apr 15, 2020
@kpantic
Copy link
Owner

kpantic commented Jun 25, 2020

I don't think just merging in #2 will solve this issue as this library hasn't been tested with the latest react as is evident from the package.json. I'm unlikely to do that fix anytime soon but if you update the dependencies to update the changes proposed here, I'm fine with that.

@ChenTongLucky520
Copy link

I am also encountering the issue when trying to use this. Is there any plan to have this fixed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants