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

**URL:** <https://forums.creativeclouddeveloper.com/t/require-assets-in-ui-hello-react-and-ui-hello-vue/691>\
**Category:** UXP Plugin API\
**Tags:** javascript\
**Created:** [March 6, 2019, 8:14am UTC](https://forums.creativeclouddeveloper.com/t/require-assets-in-ui-hello-react-and-ui-hello-vue/691 "2019-03-06T08:14:28Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![stevekwak](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/stevekwak/32/48_2.png) [@stevekwak](https://forums.creativeclouddeveloper.com/u/stevekwak)\
**Post date:** [March 6, 2019, 3:07pm UTC](https://forums.creativeclouddeveloper.com/t/require-assets-in-ui-hello-react-and-ui-hello-vue/691/2 "2019-03-06T15:07:21Z")

</div>

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](https://github.com/AdobeXD/plugin-samples/blob/29d9c52b149b1a2040cce6c220e88fa9f5346e9f/quick-start-react/webpack.config.js#L27).

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!

---

_[View the full topic](https://forums.creativeclouddeveloper.com/t/require-assets-in-ui-hello-react-and-ui-hello-vue/691)._
