Error occurs when setting sub folder. Why is that? #130
-
Hey @Saifullah-dev, thanks a lot for making this beautiful code open-source! It looks gorgeous! Error occurs when simple code is set as below. Why is that? const [files, setFiles] = useState([
{
name: "Documents",
isDirectory: true, // Folder
path: "/Documents", // Located in Root directory
updatedAt: "2024-09-09T10:30:00Z", // Last updated time
},
{
name: "Pictures",
isDirectory: true,
path: "/Pictures", // Located in Root directory as well
updatedAt: "2024-09-09T11:00:00Z",
},
{
name: "Pic.png",
isDirectory: false, // File
path: "/Pictures/Pic.png", // Located inside the "Pictures" folder
updatedAt: "2024-09-08T16:45:00Z",
size: 2048, // File size in bytes (example: 2 KB)
},
{
name: "TEMP",
isDirectory: true, // Folder
path: "/Documents/TEMP", // Located inside the "Documents" folder
updatedAt: "2024-09-08T16:45:00Z",
},
{
name: "Pic.png",
isDirectory: false, // Folder
path: "/Documents/TEMP/Pic.png", // Located inside the "TEMP" folder
updatedAt: "2024-09-08T16:45:00Z",
},
]); (error message)
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
@Taekyum What react-file-manager version are you on? |
Beta Was this translation helpful? Give feedback.
-
@Taekyum , @sahlahabteq The solution of this error has been answered in the Issue npx create-react-app. |
Beta Was this translation helpful? Give feedback.
@Taekyum , @sahlahabteq The solution of this error has been answered in the Issue npx create-react-app.