When using the UI-toolkit and building with components, there is no documentation on how to enable preview. When I was using the normal mode, I only needed to pass ‘preview’ in the features array to turn it on. I want to know how to enable preview mode when using components for building.
Have you passed through ‘preview’ to your features array (when using component view) and aren’t seeing it enabled? The implementation should be the same for component or composite build.
Yes, I have added it before, but it will give me an error as shown in the following picture. After canceling the ‘preview’ attribute, it can run normally. By the way, my operating environment is in React, I’m not sure if this is the reason for it。