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

Module not found: Can't resolve 'react-dropzone-s3-uploader' #57

Open
Khaleel opened this issue Apr 29, 2018 · 1 comment
Open

Module not found: Can't resolve 'react-dropzone-s3-uploader' #57

Khaleel opened this issue Apr 29, 2018 · 1 comment

Comments

@Khaleel
Copy link

Khaleel commented Apr 29, 2018

I have installed all these libraries via:

npm install --save react-s3-uploader react-dropzone restuta-react-dropzone-s3-uploader && npm start

And I am still getting this error:

./src/components/MediaHome/index.js
Module not found: Can't resolve 'react-dropzone-s3-uploader' in '\src\components\MediaHome'

My code is


import React, { Component } from 'react';
import DropzoneS3Uploader from 'react-dropzone-s3-uploader'

class MediaHome extends Component {

  componentDidMount() {
    // TODO 
  }

  render() {

    return (
      <div>
        <h1>Media</h1>
      </div>
    );
  }
}


I even downloaded the folder as a ZIP and tried manually putting in node_modules.

My package.json is

    "react": "^16.3.0",
    "react-datetime": "^2.14.0",
    "react-dom": "^16.3.0",
    "react-dropzone": "^4.2.9",
    "react-router-dom": "^4.2.2",
    "react-s3": "^1.2.4",
    "react-s3-uploader": "^4.8.0",
    "react-scripts": "1.1.1",
    "restuta-react-dropzone-s3-uploader": "^0.20.4",

@mvogel-dev
Copy link

I had the same problem - I switched from:
import DropzoneS3Uploader from 'react-dropzone-s3-uploader';
to
import DropzoneS3Uploader from 'restuta-react-dropzone-s3-uploader
and that was able to load the files.

However, now that it's loading, the module itself isn't working for me. It's throwing weird errors like "Cannot read property 'string' of undefined" from within the library files.

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

2 participants