Uncaught Error: The operation is not valid for channels of type component.
at CompositeChannel.get (uxp://uxp-internal:1)
at eval (VM969 Demos.jsx:14)
at Array.forEach (<anonymous>)
at Demos (VM969 Demos.jsx:14)
at renderWithHooks (VM960 react-dom.development.js:14803)
at mountIndeterminateComponent (VM960 react-dom.development.js:17482)
at beginWork (VM960 react-dom.development.js:18596)
at e.exports.callCallback (VM960 react-dom.development.js:188)
at uxp://uxp-internal/domjs_scripts.js:2
at I (uxp://uxp-internal/domjs_scripts.js:2)
Make sure that you use API version 2 on your manifest file. Here is info about this.
Also, I found that for basic channels (RGM or CMYK) = “CompositeChannel” this doesn’t work.