Roots Discourse

Adding jQuery UI - specifically datepicker


#1

Hi,

I’m new to this theme and I’m struggling a bit.

So far I’ve run “$ yarn add webpack-jquery-ui” and this has added dependencies to package.json as well as adding “import ‘jquery-ui/ui/core.js’;” to main.js but doesn’t seem as though it’s loading in, is there a specific dependencie for datepicker I’m missing?

Thanks!


#2

Just a sanity check; have you re-run yarn build since adding the import?


#3

I have.

In the end I just resorted to a standard script enque in my setup.php as I’m working to a deadline.