When build with the UI Toolkit using components, How to enabled preview

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.

thank you!

Hi @shizi0406 ,

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.

Thanks,
Rehema

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。


Hey @shizi0406 ,

This should be resolved now, can you try again with the latest version?

Best,
Tommy