You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.
I was trying to integrate jquery-ui datepicker widget in my project. So jquery-ui requires 'jQuery' as a global variable which I have exposed through webpack provide plugin but the code is breaking on server side.
It says it is unable to find 'jQuery' variable.
the code is as follows -
webpack.config.js
new webpack.ProvidePlugin({ jQuery: 'jquery', $: 'jquery', jquery: 'jquery' })
datepicker.component.ts
import "jquery-ui/ui/widgets/datepicker.js"
Can you suggest any workaround for using jquery widgets.
The text was updated successfully, but these errors were encountered:
I was trying to integrate jquery-ui datepicker widget in my project. So jquery-ui requires 'jQuery' as a global variable which I have exposed through webpack provide plugin but the code is breaking on server side.
It says it is unable to find 'jQuery' variable.
the code is as follows -
webpack.config.js
new webpack.ProvidePlugin({ jQuery: 'jquery', $: 'jquery', jquery: 'jquery' })
datepicker.component.ts
import "jquery-ui/ui/widgets/datepicker.js"
Can you suggest any workaround for using jquery widgets.
The text was updated successfully, but these errors were encountered: