Skip to content

Error "require is not defined" on empty project with version 13.1.0 #580

Closed
@appimpact

Description

@appimpact
  1. Created new blank Angular 13.1.0 project
  2. Installed with npm latest version of ng2-date-picker 13.1.0
  3. Installed with npm latest version of dayjs
  4. Imported DpDatePickerModule in AppModule
  5. Added component to AppComponent

Console is throwing an error:
image

Find source code here:
https://github.com/App-Impact-Labs/ISSUE-Ng2DatePickerRequireError

This is happening on all our projects.
We created blank solution with intention to find what is missing in our configuration, and ended up with same result.

Can you please provide instructions on how to mitigate this issue?

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