lit-flatpickr icon indicating copy to clipboard operation
lit-flatpickr copied to clipboard

Webpack warning -Critical dependency: the request of a dependency is an expression

Open RanSolo opened this issue 2 years ago • 0 comments

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. image

RanSolo avatar Sep 22 '22 19:09 RanSolo