-
Notifications
You must be signed in to change notification settings - Fork 247
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
'DropzoneAreaBase' is not exported from 'material-ui-dropzone' #177
Comments
Hi @Kaliyani , Thanks for your feedback, for now if you need to upgrade you can install the module directly from ❯ npm i yuvaleros/material-ui-dropzone#4fda0ea (the same also works with Thanks for your feedback and patience. |
Hi @panz3r, I have downloaded the package from below GitHub,
Still i am getting the same error. Please find the below screen shot. Also i could see the component name DropzoneAreaBase is missspelled as DrozponeAreaBase. My package.json file now looks like below, |
Hi @Kaliyani , Thanks again for your feedback, I checked and fixed an issue with the Typescript typings (the You can try out with the latest version, installable by running ❯ npm i yuvaleros/material-ui-dropzone#34290a7 The component is correctly exported as |
hi, i have the same problem, the above npm code not working, it results error :
|
Hi @Alarees , Thanks for your feedback, I just made a quick test ( I created a new app using The error you posted seems related to an |
Note that for panz3r's workaround to work you must have yarn installed! |
Hey @panz3r, Will 3.2.0 be added to npm anytime soon? |
Hi, Version In the meanwhile to install it you can do the following ❯ npm i yuvaleros/material-ui-dropzone#v3.2.1 (the same also works with |
Bug Report
Describe the bug
Getting error like 'DropzoneAreaBase' not exported
Steps to reproduce
Installed material-ui-dropzone version 3.0.0
Please find my code below
``
import React, { useState } from "react";
import { DropzoneAreaBase } from "material-ui-dropzone";
import { Description, AttachFile } from "@material-ui/icons";
import WordImage from "assets/word.png";
import ExcelImage from "assets/excel.png";
export default function UploadPage() {
const [fileObjects, setFileObjects] = useState([]);
const handlePreviewIcon = (fileObject, classes) => {
const { type } = fileObject.file;
const iconProps = {
className: classes.image,
};
};
return (
<DropzoneAreaBase
fileObjects={fileObjects}
onAdd={(newFileObjs) => {
console.log("onAdd", newFileObjs);
setFileObjects([].concat(fileObjects, newFileObjs));
}}
onDelete={(deleteFileObj) => {
console.log("onDelete", deleteFileObj);
}}
getPreviewIcon={handlePreviewIcon}
/>
);
}
``
Expected behavior
Need to get DropzoneAreaBase as exported component from material-ui-dropzone
Versions
@material-ui/core
version: 4.9.2material-ui-dropzone
version: 3.0.0Additional context
Here i have attached my package.json file for more information.
The text was updated successfully, but these errors were encountered: