Skip to content

Module not found: Error: Can't resolve 'moment' in 'node_modules/react-datetime/dist' #873

Description

@diennn-gg

I'm encountering the following error while using react-datetime:
Module not found: Error: Can't resolve 'moment' in 'node_modules/react-datetime/dist'
However, I don't want to install moment in my project. Is there a way to use react-datetime without needing moment as a dependency?

Could you provide guidance on how to resolve this issue or suggest alternatives to avoid installing moment?

Thanks in advance!

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions