lit-flatpickr
lit-flatpickr copied to clipboard
Webpack warning -Critical dependency: the request of a dependency is an expression
Webpack warning
WARNING in ../../node_modules/lit-flatpickr/dist/src/LocaleLoader.js 4:28-44
Critical dependency: the request of a dependency is an expression
<lit-flatpickr
altInput
theme="airbnb"
dateFormat="Y-m-d"
altFormat="F j, Y"
.defaultDate=${`${deliveryDate}`}
type="date"
.minDate=${new Date()}
>
<pt-input
@sl-change=${handleDateSelection}
name="deliveryDate"
label="Deliver on"
value=${deliveryDate as string}
defaultValue=${deliveryDate as string}
.disabled=${!scheduledDelivery as boolean}
.errors=${errors}
></pt-input>
</lit-flatpickr>
If I go in and comment out all that is happening in the LocaleLoader the warning goes away and everything works as expected with no problems.