material-ui-upload icon indicating copy to clipboard operation
material-ui-upload copied to clipboard

UploadPreview is not displayed

Open ivaqmo123 opened this issue 7 years ago • 3 comments

I get below error when adding UploadPreview component in a parent react component

Uncaught TypeError: Cannot read property 'prepareStyles' of undefined
    at Paper.render (Paper.js:105)
    at finishClassComponent (react-dom.development.js:14105)
    at updateClassComponent (react-dom.development.js:14069)
    at beginWork (react-dom.development.js:14687)
    at performUnitOfWork (react-dom.development.js:17242)
    at workLoop (react-dom.development.js:17281)
    at HTMLUnknownElement.callCallback (react-dom.development.js:144)
    at Object.invokeGuardedCallbackDev (react-dom.development.js:193)
    at invokeGuardedCallback (react-dom.development.js:243)
    at replayUnitOfWork (react-dom.development.js:16536)
    at renderRoot (react-dom.development.js:17374)
    at performWorkOnRoot (react-dom.development.js:18252)
    at performWork (react-dom.development.js:18159)
    at performSyncWork (react-dom.development.js:18132)
    at interactiveUpdates$1 (react-dom.development.js:18442)
    at interactiveUpdates (react-dom.development.js:2320)
    at dispatchInteractiveEvent (react-dom.development.js:5130)

ivaqmo123 avatar Nov 15 '18 21:11 ivaqmo123

+1. The same problem.

KovalevichTimofei avatar Jun 06 '19 11:06 KovalevichTimofei

I tried to update all dependencies today but failed to make it work, there are too many changes. If somebody need this component working you could help me, I don't have much time to invest in nodejs modules at the moment

corpix avatar Jun 06 '19 15:06 corpix

Gave it another try today. Updated babel and react(strange, I thought npm-check-updates should do this without me manually updating versions). Still not working and has a lot of strange errors which is hard to reason about especially when starting a storybook server(make server) which I used to develop and debug react «things» in the past.

Just 2 years without updates. Nodejs projects is kinda... ~~such a horrible pile of crap~~ live fast, die young...

corpix avatar Jun 08 '19 22:06 corpix