Require("assets") in ui-hello-react and ui-hello-vue

Hi @getflourish,

Those samples use Webpack, which requires XD specific modules like assets or scenegraph to be noted in the externals field of the config file. Refer to this line in the quick-start-react guide.

After you write externals in the config, require those modules in the src/main.jsx file and then run yarn watch to compile.

Hope this helps!

2 Likes