Latest Photoshop 23.1.0 update started giving this strange error. Any idea what could be causing it and how to workaround? Happens on MacOS.
TypeError: Cannot read property 'documentID' of undefined
at Photoshop.get
Latest Photoshop 23.1.0 update started giving this strange error. Any idea what could be causing it and how to workaround? Happens on MacOS.
TypeError: Cannot read property 'documentID' of undefined
at Photoshop.get
Where do you see this error? If it’s in Console, you should get a trace there
The error is coming from the customer, so logs are webpacked and compiled, stacktrace is not helpful.
TypeError: Cannot read property 'documentID' of undefined
at Photoshop.get (uxp://uxp-internal:1:172216)
at Root (webpack-internal:///./src/index.jsx:51:15)
at renderWithHooks (webpack-internal:///./node_modules/react-dom/cjs/react-dom.development.js:14803:18)
at updateFunctionComponent (webpack-internal:///./node_modules/react-dom/cjs/react-dom.development.js:17034:20)
at beginWork (webpack-internal:///./node_modules/react-dom/cjs/react-dom.development.js:18610:16)
at e.exports.callCallback (webpack-internal:///./node_modules/react-dom/cjs/react-dom.development.js:188:14)
at uxp://uxp-internal/domjs_scripts.js:2:8784
at Object.runWithNativeHandler (<anonymous>)
at I (uxp://uxp-internal/domjs_scripts.js:2:8676)
at uxp://uxp-internal/domjs_scripts.js:2:8168
I would start figuring out what this part is
Root (webpack-internal:///./src/index.jsx:51:15)
Maybe you then can pinpoint the location on a not packed version
The only thing Photoshop object related I do in my index file is checking if there is any active document present calling ps.app.activeDocument
How does this check look like and what do you do if there’s no doc?
What’s on index.jsx:51:15
I think I managed to reproduce the problem in development mode, will keep digging.
Looks like it was a bug. I see in pre-release v23.2 it has a bugfix logged as:
UXP executeAsModal dialog cancellation => Cannot read property ‘documentID’ of undefined
Might be related. Do you get this error while canceling a modal?
Most likely. Issue was when canceling modal dialog of color picker.