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

Issue with FileUploaderDropContainer: Cannot read property 'files' of undefined #4933

Closed
1 of 2 tasks
zbeedatm opened this issue Dec 22, 2019 · 2 comments
Closed
1 of 2 tasks

Comments

@zbeedatm
Copy link

zbeedatm commented Dec 22, 2019

What package(s) are you using?

  • carbon-components
  • carbon-components-react

Detailed description

I upgraded to 10.9.0 release, and found that FileUploaderDropContainer isn't working anymore when browsing for a file, however it's working fine when dropping a file inside the drop box!

Additional information

FileUploaderDropContainer.js:176 Uncaught TypeError: Cannot read property 'files' of undefined
at validateFiles (FileUploaderDropContainer.js:176)
at handleChange (FileUploaderDropContainer.js:207)
at HTMLUnknownElement.callCallback (react-dom.development.js:337)
at Object.invokeGuardedCallbackDev (react-dom.development.js:386)
at invokeGuardedCallback (react-dom.development.js:439)
at invokeGuardedCallbackAndCatchFirstError (react-dom.development.js:454)
at executeDispatch (react-dom.development.js:585)
at executeDispatchesInOrder (react-dom.development.js:610)
at executeDispatchesAndRelease (react-dom.development.js:713)
at executeDispatchesAndReleaseTopLevel (react-dom.development.js:722)
at forEachAccumulated (react-dom.development.js:694)
at runEventsInBatch (react-dom.development.js:739)
at runExtractedPluginEventsInBatch (react-dom.development.js:881)
at handleTopLevel (react-dom.development.js:5832)
at batchedEventUpdates$1 (react-dom.development.js:24387)
at batchedEventUpdates (react-dom.development.js:1414)
at dispatchEventForPluginEventSystem (react-dom.development.js:5928)
at attemptToDispatchEvent (react-dom.development.js:6045)
at dispatchEvent (react-dom.development.js:5948)

image

Note

I thought at the beginning that it's related to the upgrade that I did to 10.9.0 (from 10.7.4) but managed to reproduce it on Sandbox!

I had this sandbox that the browse functionality working on it:
https://codesandbox.io/s/fragrant-morning-267l5

I forked the same sandbox, but with the new one the browse functionality isn't working:
https://codesandbox.io/s/heuristic-field-w2y75

@zbeedatm zbeedatm changed the title Issue with FileUploaderDropContainer after upgrading to 10.9.0 release Issue with FileUploaderDropContainer: Cannot read property 'files' of undefined Dec 22, 2019
@asudoh
Copy link
Contributor

asudoh commented Dec 23, 2019

Hi 👋 thank you for reporting - Seems a duplicate of #4899, let's discuss there further.

@asudoh asudoh closed this as completed Dec 23, 2019
@zbeedatm
Copy link
Author

zbeedatm commented Dec 25, 2019

Weird... even after reverting back to:

"@carbon/colors": "^10.5.0",
"@carbon/icons": "^10.6.1",
"@carbon/icons-react": "^10.6.1",
"@storybook/addon-knobs": "^5.2.6",
"@types/storybook__addon-actions": "^3.4.3",
"browserslist": "^4.7.3",
"carbon-components": "^10.7.4",
"carbon-components-react": "^7.7.4",

Symptom still exist, I'm not getting that error but nothing is happening when browsing for a file and selecting it!!!

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