Skip to content

v.9.1.0 webpack warning (p2) #6181

Description

@RARgames

Describe the bug
When there is no date-fns-tz webpack shows a warning, but date-fns-tz is optional.
A followup on #6154 warning. The previous warning is gone, but different warning appeared:

To Reproduce
Install react-datepicker in a project with webpack, but without date-fns-tz

[client] Compiled with warnings.
[client]
[client] Critical dependency: the request of a dependency is an expression
[client]
[client] Search for the keywords to learn more about each warning.
[client] To ignore, add // eslint-disable-next-line to the line before.
[client]
[client] WARNING in ./node_modules/react-datepicker/dist/index.es.js 150:16-44
[client] Critical dependency: the request of a dependency is an expression
[client]
[client] webpack compiled with 1 warning

Expected behavior
There should be no warning message

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions